mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
refactor(qemu): handle AArch64 flags
Handle coherency in one place for AArch64 mode. Change-Id: Id3678a8f478e5ef731c81c0df30059000e380758 Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
This commit is contained in:
parent
c1baf17821
commit
3b61457b4e
3 changed files with 13 additions and 22 deletions
|
@ -86,3 +86,16 @@ ENABLE_FEAT_RNG := 2
|
|||
|
||||
# QEMU 7.2+ has support for FGT and Linux needs it enabled to boot on max
|
||||
ENABLE_FEAT_FGT := 2
|
||||
|
||||
ifeq (${ARCH},aarch64)
|
||||
# Treating this as a memory-constrained port for now
|
||||
USE_COHERENT_MEM := 0
|
||||
|
||||
# This can be overridden depending on CPU(s) used in the QEMU image
|
||||
HW_ASSISTED_COHERENCY := 1
|
||||
|
||||
CTX_INCLUDE_AARCH32_REGS := 0
|
||||
ifeq (${CTX_INCLUDE_AARCH32_REGS}, 1)
|
||||
$(error "This is an AArch64-only port; CTX_INCLUDE_AARCH32_REGS must be disabled")
|
||||
endif
|
||||
endif
|
||||
|
|
|
@ -23,17 +23,6 @@ $(eval $(call add_define,ARMV7_SUPPORTS_GENERIC_TIMER))
|
|||
$(eval $(call add_define,ARMV7_SUPPORTS_VFP))
|
||||
# Qemu expects a BL32 boot stage.
|
||||
NEED_BL32 := yes
|
||||
else
|
||||
CTX_INCLUDE_AARCH32_REGS := 0
|
||||
ifeq (${CTX_INCLUDE_AARCH32_REGS}, 1)
|
||||
$(error "This is an AArch64-only port; CTX_INCLUDE_AARCH32_REGS must be disabled")
|
||||
endif
|
||||
|
||||
# Treating this as a memory-constrained port for now
|
||||
USE_COHERENT_MEM := 0
|
||||
|
||||
# This can be overridden depending on CPU(s) used in the QEMU image
|
||||
HW_ASSISTED_COHERENCY := 1
|
||||
endif # ARMv7
|
||||
|
||||
ifeq (${SPD},opteed)
|
||||
|
|
|
@ -20,21 +20,10 @@ endif
|
|||
# Enable new version of image loading on QEMU platforms
|
||||
LOAD_IMAGE_V2 := 1
|
||||
|
||||
CTX_INCLUDE_AARCH32_REGS := 0
|
||||
ifeq (${CTX_INCLUDE_AARCH32_REGS}, 1)
|
||||
$(error "This is an AArch64-only port; CTX_INCLUDE_AARCH32_REGS must be disabled")
|
||||
endif
|
||||
|
||||
ifeq ($(NEED_BL32),yes)
|
||||
$(eval $(call add_define,QEMU_LOAD_BL32))
|
||||
endif
|
||||
|
||||
# Treating this as a memory-constrained port for now
|
||||
USE_COHERENT_MEM := 0
|
||||
|
||||
# This can be overridden depending on CPU(s) used in the QEMU image
|
||||
HW_ASSISTED_COHERENCY := 1
|
||||
|
||||
BL2_SOURCES += $(LIBFDT_SRCS)
|
||||
|
||||
# Include GICv3 driver files
|
||||
|
|
Loading…
Add table
Reference in a new issue