am: add loongarch32r-nemu

This commit is contained in:
Zihao Yu 2022-11-15 15:24:49 +08:00
parent ff88f398bc
commit 67699be876
9 changed files with 201 additions and 0 deletions

View file

@ -0,0 +1,4 @@
CROSS_COMPILE := loongarch32r-linux-gnusf-
COMMON_FLAGS := -fno-pic
CFLAGS += $(COMMON_FLAGS) -static
ASFLAGS += $(COMMON_FLAGS) -O0

View file

@ -0,0 +1,8 @@
include $(AM_HOME)/scripts/isa/loongarch32r.mk
include $(AM_HOME)/scripts/platform/nemu.mk
CFLAGS += -DISA_H=\"loongarch/loongarch32r.h\"
AM_SRCS += loongarch/nemu/start.S \
loongarch/nemu/cte.c \
loongarch/nemu/trap.S \
loongarch/nemu/vme.c