diff --git a/cmake-tool/helpers/simulation.cmake b/cmake-tool/helpers/simulation.cmake index cf38b557..2cfb5cb6 100644 --- a/cmake-tool/helpers/simulation.cmake +++ b/cmake-tool/helpers/simulation.cmake @@ -144,14 +144,19 @@ function(GenerateSimulateScript) set(qemu_sim_extra_args "-bios none") elseif(KernelPlatformQEMUArmVirt) set(QemuBinaryMachine "qemu-system-${QEMU_ARCH}") - if(KernelArmHypervisorSupport) + if(Kernel32) set(sim_machine "virt,virtualization=on,highmem=off,secure=off") else() - set(sim_machine "virt") + set(sim_machine "virt,virtualization=on,highmem=on,secure=off") endif() set(sim_graphic_opt "-nographic") set(sim_cpu "${KernelArmCPU}") SetDefaultMemSize("${QEMU_MEMORY}") + if(KernelMaxNumNodes) + set(qemu_sim_extra_args "-smp ${KernelMaxNumNodes}") + else() + set(qemu_sim_extra_args "-smp 1") + endif() elseif(KernelPlatformQEMURiscVVirt) set(QemuBinaryMachine "qemu-system-${KernelSel4Arch}") set(sim_machine "virt")