From a5ef53a8a845677d2b8d52b95684d8d692120170 Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Tue, 16 Jun 2020 10:12:20 -0700 Subject: [PATCH] qemu: aarch64: switch to -cpu max for PAC/BTI The PAC/BTI instructions were added in v8.3a/v8.5a. (See https://reviews.llvm.org/D62609). Without enabling this cpu, the instructions are treated as NOPS. Switch to a CPU that will use these instructions, testing kernel configs (CONFIG_ARM64_PTR_AUTH, CONFIG_ARM64_BTI) which we will ship and Android+CrOS as soon as hardware is available. Suggested-by: Mark Brown --- boot-qemu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot-qemu.sh b/boot-qemu.sh index a639b0b..4a9dbd0 100755 --- a/boot-qemu.sh +++ b/boot-qemu.sh @@ -140,7 +140,7 @@ function setup_qemu_args() { KIMAGE=Image.gz APPEND_STRING+="console=ttyAMA0 " QEMU_ARCH_ARGS=( - -cpu cortex-a57 + -cpu max -machine virt) QEMU=(qemu-system-aarch64) ;;