Skip to content

Commit

Permalink
riscv: virt: Relax the configurations related to hart/thread number
Browse files Browse the repository at this point in the history
Do not force the CFG_TEE_CORE_NB_CORE and CFG_NUM_THREADS to be 1, since
we may run SMP system which has multiple harts and threads.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Marouene Boubakri <marouene.boubakri@nxp.com>
  • Loading branch information
gagachang committed Dec 7, 2023
1 parent 9f4ce42 commit 21a1f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/arch/riscv/plat-virt/conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ $(call force,CFG_WITH_STACK_CANARIES,n)
$(call force,CFG_CORE_SANITIZE_KADDRESS,n)

# Hart-related flags
$(call force,CFG_TEE_CORE_NB_CORE,1)
$(call force,CFG_NUM_THREADS,1)
CFG_TEE_CORE_NB_CORE ?= 1
CFG_NUM_THREADS ?= 1
$(call force,CFG_BOOT_SYNC_CPU,y)

# RISC-V-specific flags
Expand Down

0 comments on commit 21a1f77

Please sign in to comment.