Skip to content

Commit

Permalink
arch/arm64: enable for arm64 virt to choice CPU core
Browse files Browse the repository at this point in the history
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 <qinwei1@xiaomi.com>
  • Loading branch information
qinwei2004 committed Aug 10, 2023
1 parent 9aa57b6 commit 23b9887
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion arch/arm64/Kconfig
Expand Up @@ -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---
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/src/qemu/Kconfig
Expand Up @@ -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

Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit 23b9887

Please sign in to comment.