zephyr/boards/riscv/qemu_riscv32/board.cmake

24 lines
368 B
CMake
Raw Normal View History

# SPDX-License-Identifier: Apache-2.0
set(EMU_PLATFORM qemu)
set(QEMU_binary_suffix riscv32)
set(QEMU_CPU_TYPE_${ARCH} riscv32)
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()
board_set_debugger_ifnset(qemu)