boards: x86/qemu: enable CPU flags for MMX/SSE
Tells QEMU to enable CPU flags corresponding to MMX/SSE kconfigs. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
9a189da03b
commit
cd703ae9cf
1 changed files with 28 additions and 1 deletions
|
@ -26,9 +26,36 @@ else()
|
||||||
math(EXPR QEMU_MEMORY_SIZE_MB "${CONFIG_SRAM_SIZE} / 1024")
|
math(EXPR QEMU_MEMORY_SIZE_MB "${CONFIG_SRAM_SIZE} / 1024")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(QEMU_CPU_FLAGS "")
|
||||||
|
if(CONFIG_X86_MMX)
|
||||||
|
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "mmx")
|
||||||
|
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "mmxext")
|
||||||
|
endif()
|
||||||
|
if(CONFIG_X86_SSE)
|
||||||
|
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse")
|
||||||
|
endif()
|
||||||
|
if(CONFIG_X86_SSE2)
|
||||||
|
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse2")
|
||||||
|
endif()
|
||||||
|
if(CONFIG_X86_SSE3)
|
||||||
|
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "pni")
|
||||||
|
endif()
|
||||||
|
if(CONFIG_X86_SSSE3)
|
||||||
|
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "ssse3")
|
||||||
|
endif()
|
||||||
|
if(CONFIG_X86_SSE41)
|
||||||
|
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse4.1")
|
||||||
|
endif()
|
||||||
|
if(CONFIG_X86_SSE42)
|
||||||
|
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse4.2")
|
||||||
|
endif()
|
||||||
|
if(CONFIG_X86_SSE4A)
|
||||||
|
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse4a")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(QEMU_FLAGS_${ARCH}
|
set(QEMU_FLAGS_${ARCH}
|
||||||
-m ${QEMU_MEMORY_SIZE_MB}
|
-m ${QEMU_MEMORY_SIZE_MB}
|
||||||
-cpu ${QEMU_CPU_TYPE_${ARCH}}
|
-cpu ${QEMU_CPU_TYPE_${ARCH}}${QEMU_CPU_FLAGS}
|
||||||
-device isa-debug-exit,iobase=0xf4,iosize=0x04
|
-device isa-debug-exit,iobase=0xf4,iosize=0x04
|
||||||
${REBOOT_FLAG}
|
${REBOOT_FLAG}
|
||||||
-nographic
|
-nographic
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue