summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu/data/usr/bin/qemu-system-x86_64.openslx
blob: 82f367478ff138de2a852cbf382da0da1c9d4f7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

bin="${0%.openslx}"

i="$#"
while [ "$i" -gt 0 ]; do
  case "$1" in
    -cpu)
      case "$2" in
      host*|max*)
        set -- "$@" -cpu "$2,host-phys-bits-limit=0x28"
        : "$(( i -= 2 ))"
        shift 2
        continue
        ;;
      esac
  esac
  set -- "$@" "$1"
  : "$(( i -= 1 ))"
  shift 1
done

exec "$bin" "$@"