Skip to content

Commit

Permalink
qemu_v8: enable max CPU for Xen
Browse files Browse the repository at this point in the history
Enable the QEMU max CPU for Xen. With this change simplify the
configuration a little.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
  • Loading branch information
jenswi-linaro authored and jforissier committed Jun 5, 2024
1 parent 355a74e commit f68f33e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions qemu_v8.mk
Original file line number Diff line number Diff line change
Expand Up @@ -489,27 +489,29 @@ run: all


ifeq ($(XEN_BOOT),y)
QEMU_CPU ?= cortex-a57
QEMU_VIRT = true
else ifeq ($(SPMC_AT_EL),2)
QEMU_VIRT = true
else
QEMU_VIRT = false
endif

ifeq ($(XEN_BOOT),y)
QEMU_MEM ?= 3072
QEMU_SMP ?= 4
QEMU_VIRT = true
QEMU_XEN ?= -drive if=none,file=$(XEN_EXT4),format=raw,id=hd1 \
-device virtio-blk-device,drive=hd1
else
ifeq ($(SPMC_AT_EL),2)
QEMU_VIRT = true
else
QEMU_VIRT = false
QEMU_SMP ?= 2
QEMU_MEM ?= 1057
endif

ifeq ($(SPMC_AT_EL),n)
QEMU_SME = on
else
QEMU_SME = off
endif
QEMU_CPU ?= max,sme=$(QEMU_SME),pauth-impdef=on
QEMU_SMP ?= 2
QEMU_MEM ?= 1057
endif

ifeq ($(MEMTAG),y)
QEMU_MTE = on
Expand Down

0 comments on commit f68f33e

Please sign in to comment.