add riscv32mini-nemu

This commit is contained in:
Zihao Yu 2024-02-18 00:36:29 +08:00
parent e76ca7406a
commit 56d4ae7165
7 changed files with 818 additions and 6 deletions

View file

@ -96,12 +96,6 @@ LDFLAGS += -z noexecstack
### Paste in arch-specific configurations (e.g., from `scripts/x86_64-qemu.mk`)
-include $(AM_HOME)/scripts/$(ARCH).mk
### Fall back to native gcc/binutils if there is no cross compiler
ifeq ($(wildcard $(shell which $(CC))),)
$(info # $(CC) not found; fall back to default gcc and binutils)
CROSS_COMPILE :=
endif
## 5. Compilation Rules
### Rule (compile): a single `.c` -> `.o` (gcc)