[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:
David Spickett
2023-03-23 13:46:49 +00:00
parent 4f9929add5
commit 5193c4a8b3

6
lldb/scripts/lldb-test-qemu/run-qemu.sh Normal file → Executable file
View 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"