2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
set(EMU_PLATFORM qemu)
|
|
|
|
|
|
|
|
if(NOT CONFIG_REBOOT)
|
|
|
|
set(REBOOT_FLAG -no-reboot)
|
|
|
|
endif()
|
|
|
|
|
2019-10-25 03:57:57 +08:00
|
|
|
if(CONFIG_X86_64)
|
2019-07-23 06:49:25 +08:00
|
|
|
set(QEMU_binary_suffix x86_64)
|
|
|
|
set(QEMU_CPU_TYPE_${ARCH} qemu64,+x2apic)
|
|
|
|
else()
|
|
|
|
set(QEMU_CPU_TYPE_${ARCH} qemu32,+nx,+pae)
|
|
|
|
endif()
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
set(QEMU_FLAGS_${ARCH}
|
2019-08-03 06:48:45 +08:00
|
|
|
-m 9
|
2017-10-27 21:43:34 +08:00
|
|
|
-cpu ${QEMU_CPU_TYPE_${ARCH}}
|
|
|
|
-device isa-debug-exit,iobase=0xf4,iosize=0x04
|
|
|
|
${REBOOT_FLAG}
|
|
|
|
-nographic
|
|
|
|
)
|
|
|
|
|
|
|
|
# TODO: Support debug
|
2019-06-01 07:57:16 +08:00
|
|
|
# board_set_debugger_ifnset(qemu)
|
2017-10-27 21:43:34 +08:00
|
|
|
# debugserver: QEMU_EXTRA_FLAGS += -s -S
|
|
|
|
# debugserver: qemu
|