2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-08-30 19:09:48 +08:00
|
|
|
set(SUPPORTED_EMU_PLATFORMS qemu)
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2023-09-14 03:45:50 +08:00
|
|
|
if(CONFIG_BOARD_QEMU_XTENSA OR CONFIG_BOARD_QEMU_XTENSA_MMU)
|
2023-08-25 01:05:02 +08:00
|
|
|
set(QEMU_CPU_TYPE_${ARCH} dc233c)
|
|
|
|
|
|
|
|
set(QEMU_FLAGS_${ARCH}
|
|
|
|
-machine sim -semihosting -nographic -cpu dc233c
|
|
|
|
)
|
|
|
|
endif()
|
2017-10-27 21:43:34 +08:00
|
|
|
|
|
|
|
# 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
|