mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-30 21:46:01 +00:00
There are two set of code supporting x86_64: x86_64 using x32 ABI, and x86 long mode, and this consolidates both into one x86_64 architecture and SoC supporting truly 64-bit mode. () Removes the x86_64:x32 architecture and SoC, and replaces them with the existing x86 long mode arch and SoC. () Replace qemu_x86_64 with qemu_x86_long as qemu_x86_64. () Updates samples and tests to remove reference to qemu_x86_long. () Renames CONFIG_X86_LONGMODE to CONFIG_X86_64. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
28 lines
543 B
CMake
28 lines
543 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set(EMU_PLATFORM qemu)
|
|
|
|
if(NOT CONFIG_REBOOT)
|
|
set(REBOOT_FLAG -no-reboot)
|
|
endif()
|
|
|
|
if(CONFIG_X86_64)
|
|
set(QEMU_binary_suffix x86_64)
|
|
set(QEMU_CPU_TYPE_${ARCH} qemu64,+x2apic)
|
|
else()
|
|
set(QEMU_CPU_TYPE_${ARCH} qemu32,+nx,+pae)
|
|
endif()
|
|
|
|
set(QEMU_FLAGS_${ARCH}
|
|
-m 9
|
|
-cpu ${QEMU_CPU_TYPE_${ARCH}}
|
|
-device isa-debug-exit,iobase=0xf4,iosize=0x04
|
|
${REBOOT_FLAG}
|
|
-nographic
|
|
)
|
|
|
|
# TODO: Support debug
|
|
# board_set_debugger_ifnset(qemu)
|
|
# debugserver: QEMU_EXTRA_FLAGS += -s -S
|
|
# debugserver: qemu
|