You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/08/10 12:48:25 UTC

[nuttx] branch master updated: arch/arm64: enable for arm64 virt to choice CPU core

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 37e69cdeb0 arch/arm64: enable for arm64 virt to choice CPU core
37e69cdeb0 is described below

commit 37e69cdeb0b427d216eb74d1a7f0d14cab8718af
Author: qinwei1 <qi...@xiaomi.com>
AuthorDate: Fri Jun 9 19:26:00 2023 +0800

    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 <qi...@xiaomi.com>
---
 arch/arm64/Kconfig                                               | 1 -
 arch/arm64/src/qemu/Kconfig                                      | 3 +++
 boards/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