@ -18,6 +18,17 @@ $(eval $(call add_define,ARMV7_SUPPORTS_GENERIC_TIMER))
$( eval $ ( call add_define ,ARMV 7_SUPPORTS_VFP ) )
# Qemu expects a BL32 boot stage.
NEED_BL32 := yes
e l s e
CTX_INCLUDE_AARCH32_REGS := 0
i f e q ( $ { C T X _ I N C L U D E _ A A R C H 3 2 _ R E G S } , 1 )
$( error "This is an AArch 64-only port ; CTX_INCLUDE_AARCH 32_REGS must be disabled ")
e n d i f
# 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
e n d i f # ARMv7
i f e q ( $ { S P D } , o p t e e d )
@ -46,6 +57,17 @@ PLAT_INCLUDES := -Iinclude/plat/arm/common/ \
i f e q ( $ { A R M _ A R C H _ M A J O R } , 8 )
PLAT_INCLUDES += -Iinclude/plat/arm/common/${ ARCH }
QEMU_CPU_LIBS := lib/cpus/aarch64/aem_generic.S \
lib/cpus/aarch64/cortex_a53.S \
lib/cpus/aarch64/cortex_a57.S \
lib/cpus/aarch64/cortex_a72.S \
lib/cpus/aarch64/cortex_a76.S \
lib/cpus/aarch64/neoverse_n_common.S \
lib/cpus/aarch64/neoverse_n1.S \
lib/cpus/aarch64/qemu_max.S
e l s e
QEMU_CPU_LIBS := lib/cpus/${ ARCH } /cortex_a15.S
e n d i f
PLAT_BL_COMMON_SOURCES := ${ PLAT_QEMU_COMMON_PATH } /qemu_common.c \
@ -135,18 +157,8 @@ BL1_SOURCES += drivers/io/io_semihosting.c \
lib/semihosting/${ ARCH } /semihosting_call.S \
${ PLAT_QEMU_COMMON_PATH } /qemu_io_storage.c \
${ PLAT_QEMU_COMMON_PATH } /${ ARCH } /plat_helpers.S \
${ PLAT_QEMU_COMMON_PATH } /qemu_bl1_setup.c
i f e q ( $ { A R M _ A R C H _ M A J O R } , 8 )
BL1_SOURCES += lib/cpus/aarch64/aem_generic.S \
lib/cpus/aarch64/cortex_a53.S \
lib/cpus/aarch64/cortex_a57.S \
lib/cpus/aarch64/cortex_a72.S \
lib/cpus/aarch64/qemu_max.S \
e l s e
BL1_SOURCES += lib/cpus/${ ARCH } /cortex_a15.S
e n d i f
${ PLAT_QEMU_COMMON_PATH } /qemu_bl1_setup.c \
${ QEMU_CPU_LIBS }
BL2_SOURCES += drivers/io/io_semihosting.c \
drivers/io/io_storage.c \
@ -195,11 +207,7 @@ $(error "Incorrect GIC driver chosen for QEMU platform")
e n d i f
i f e q ( $ { A R M _ A R C H _ M A J O R } , 8 )
BL31_SOURCES += lib/cpus/aarch64/aem_generic.S \
lib/cpus/aarch64/cortex_a53.S \
lib/cpus/aarch64/cortex_a57.S \
lib/cpus/aarch64/cortex_a72.S \
lib/cpus/aarch64/qemu_max.S \
BL31_SOURCES += ${ QEMU_CPU_LIBS } \
lib/semihosting/semihosting.c \
lib/semihosting/${ ARCH } /semihosting_call.S \
plat/common/plat_psci_common.c \