boards: qemu_x86_64: enable icount for CONFIG_MP_NUM_CPUS=1
QEMU icount does not work correctly when more than 1 CPU is used, but works fine with only 1 CPU enabled. So we can enable icount on qemu_x86_64 when CONFIG_MP_NUM_CPUS=1. Sanitycheck goes from ~158 seconds to ~113 seconds on my dev machine. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
2959ed35c1
commit
11afec76d1
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,10 @@ endif()
|
|||
if(CONFIG_X86_64)
|
||||
set(QEMU_binary_suffix x86_64)
|
||||
set(QEMU_CPU_TYPE_${ARCH} qemu64,+x2apic)
|
||||
if("${CONFIG_MP_NUM_CPUS}" STREQUAL "1")
|
||||
# icount works with 1 CPU so we can enable it here.
|
||||
list(APPEND QEMU_EXTRA_FLAGS -icount shift=5,align=off,sleep=off -rtc clock=vm)
|
||||
endif()
|
||||
else()
|
||||
set(QEMU_CPU_TYPE_${ARCH} qemu32,+nx,+pae)
|
||||
if(CONFIG_QEMU_ICOUNT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue