From 37e69cdeb0b427d216eb74d1a7f0d14cab8718af Mon Sep 17 00:00:00 2001 From: qinwei1 Date: Fri, 9 Jun 2023 19:26:00 +0800 Subject: [PATCH] arch/arm64: enable for arm64 virt to choice CPU core Summary Qemu virt board can choice CPU core with boot parameter and we need to add Konfig option for choice the change do this Signed-off-by: qinwei1 --- arch/arm64/Kconfig | 1 - arch/arm64/src/qemu/Kconfig | 3 +++ .../arm64/qemu/qemu-armv8a/configs/nsh_smp_tickless/defconfig | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 4f91a7faaf..a3bc6c97e0 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -38,7 +38,6 @@ config ARCH_CHIP_A64 config ARCH_CHIP_QEMU bool "QEMU virt platform (ARMv8a)" - select ARCH_CORTEX_A53 select ARCH_HAVE_ADDRENV select ARCH_NEED_ADDRENV_MAPPING ---help--- diff --git a/arch/arm64/src/qemu/Kconfig b/arch/arm64/src/qemu/Kconfig index ce6caa81b2..099de47387 100644 --- a/arch/arm64/src/qemu/Kconfig +++ b/arch/arm64/src/qemu/Kconfig @@ -16,18 +16,21 @@ config ARCH_CHIP_QEMU_A53 select ARCH_HAVE_MULTICPU select ARMV8A_HAVE_GICv3 select ARCH_HAVE_PSCI + select ARCH_CORTEX_A53 config ARCH_CHIP_QEMU_A57 bool "Qemu virtual Processor (cortex-a57)" select ARCH_HAVE_MULTICPU select ARMV8A_HAVE_GICv3 select ARCH_HAVE_PCSI + select ARCH_CORTEX_A57 config ARCH_CHIP_QEMU_A72 bool "Qemu virtual Processor (cortex-a72)" select ARCH_HAVE_MULTICPU select ARMV8A_HAVE_GICv3 select ARCH_HAVE_PCSI + select ARCH_CORTEX_A72 endchoice # Qemu Chip Selection diff --git a/boards/arm64/qemu/qemu-armv8a/configs/nsh_smp_tickless/defconfig b/boards/arm64/qemu/qemu-armv8a/configs/nsh_smp_tickless/defconfig index 296d298389..42d8b41f0b 100644 --- a/boards/arm64/qemu/qemu-armv8a/configs/nsh_smp_tickless/defconfig +++ b/boards/arm64/qemu/qemu-armv8a/configs/nsh_smp_tickless/defconfig @@ -13,7 +13,6 @@ CONFIG_ARCH_BOARD_QEMU_ARMV8A=y CONFIG_ARCH_CHIP="qemu" CONFIG_ARCH_CHIP_QEMU=y CONFIG_ARCH_CHIP_QEMU_A53=y -CONFIG_ARCH_EARLY_PRINT=y CONFIG_ARCH_INTERRUPTSTACK=8192 CONFIG_BUILTIN=y CONFIG_DEBUG_ASSERTIONS=y