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)
|
|
|
|
|
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)
|
|
|
|
|
2021-03-08 00:42:17 +08:00
|
|
|
if(CONFIG_BOARD_QEMU_RISCV32)
|
|
|
|
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)
|