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
|
|
|
|
2019-07-18 01:17:05 +08:00
|
|
|
set(QEMU_binary_suffix riscv32)
|
2017-10-27 21:43:34 +08:00
|
|
|
set(QEMU_CPU_TYPE_${ARCH} riscv32)
|
|
|
|
|
2022-01-12 07:38:14 +08:00
|
|
|
if(CONFIG_BOARD_QEMU_RISCV32 OR CONFIG_BOARD_QEMU_RISCV32_SMP)
|
2021-03-08 00:42:17 +08:00
|
|
|
set(QEMU_FLAGS_${ARCH}
|
|
|
|
-nographic
|
|
|
|
-machine virt
|
|
|
|
-bios none
|
|
|
|
-m 256
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(QEMU_FLAGS_${ARCH}
|
|
|
|
-nographic
|
|
|
|
-machine sifive_e
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2019-06-01 07:57:16 +08:00
|
|
|
board_set_debugger_ifnset(qemu)
|