mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 07:01:03 +08:00
[lldb][AArch64] Fix run-qemu.sh when only MTE is enabled.
SVE and MTE both require a CPU with that feature before you can use the other options, but we only added the "max" cpu when SVE was enabled too.
This commit is contained in:
6
lldb/scripts/lldb-test-qemu/run-qemu.sh
Normal file → Executable file
6
lldb/scripts/lldb-test-qemu/run-qemu.sh
Normal file → Executable file
@@ -109,8 +109,12 @@ elif [[ "$ARCH" == "arm64" ]]; then
|
||||
QEMU_SVE_MAX_VQ=4
|
||||
QEMU_CPU="cortex-a53"
|
||||
|
||||
if [[ $SVE ]] || [[ $MTE ]]; then
|
||||
QEMU_CPU="max"
|
||||
fi
|
||||
|
||||
if [[ $SVE ]]; then
|
||||
QEMU_CPU="max,sve-max-vq=$QEMU_SVE_MAX_VQ"
|
||||
QEMU_CPU="$QEMU_CPU,sve-max-vq=$QEMU_SVE_MAX_VQ"
|
||||
fi
|
||||
if [[ $MTE ]]; then
|
||||
QEMU_MACHINE="$QEMU_MACHINE,mte=on"
|
||||
|
||||
Reference in New Issue
Block a user