[platform][sifive] add switch to scripts/do-riscvqemu to run sifive unleashed

Also fix up some broken bits on the previously unused qemu-sifive-u target.
This commit is contained in:
Travis Geiselbrecht
2020-12-30 01:32:33 -08:00
parent 1e50428091
commit 6ea6256d89
4 changed files with 43 additions and 22 deletions

View File

@@ -7,16 +7,16 @@ VARIANT := sifive_u
GLOBAL_DEFINES += SIFIVE_FREQ=5000000 # 5 MHz
RISCV_MODE ?= machine
RISCV_MODE ?= supervisor
ifeq ($(RISCV_MODE),supervisor)
MEMBASE ?= 0x080200000
MEMBASE ?= 0x080300000
else
MEMBASE ?= 0x080000000
endif
MEMSIZE ?= 0x200000000 # 8 GiB
WITH_SMP := 0
WITH_SMP := 1
SMP_MAX_CPUS := 4
MODULE_SRCS := $(LOCAL_DIR)/target.c