boards: qemu_x86: enable icount mode
Enable icount mode for qemu_x86 platform, The icount shift value is selectd based on cpu clock frequency of this platform. The virtual cpu will execute one instruction every 2^shift ns of virtual time. Signed-off-by: Wentong Wu <wentong.wu@intel.com>
This commit is contained in:
parent
0d619aefd8
commit
56c8f49b5c
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ if(CONFIG_X86_64)
|
|||
set(QEMU_CPU_TYPE_${ARCH} qemu64,+x2apic)
|
||||
else()
|
||||
set(QEMU_CPU_TYPE_${ARCH} qemu32,+nx,+pae)
|
||||
if(CONFIG_QEMU_ICOUNT)
|
||||
list(APPEND QEMU_EXTRA_FLAGS -icount shift=5,align=off,sleep=off -rtc clock=vm)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(QEMU_FLAGS_${ARCH}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue