This repository was archived by the owner on Jan 25, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change 11BINS = emu-rv32i test1
2- TEST_TARGETS = \
3- C-ADD.elf \
4- C-ADDI.elf \
5- C-ADDI4SPN.elf \
6- C-AND.elf \
7- C-ANDI.elf \
8- C-BEQZ.elf \
9- C-BNEZ.elf \
10- C-J.elf \
11- C-JAL.elf \
12- C-JALR.elf \
13- C-JR.elf \
14- C-LI.elf \
15- C-LUI.elf \
16- C-LW.elf \
17- C-LWSP.elf \
18- C-MV.elf \
19- C-NOP.elf \
20- C-OR.elf \
21- C-SLLI.elf \
22- C-SRAI.elf \
23- C-SRLI.elf \
24- C-SUB.elf \
25- C-SW.elf \
26- C-SWSP.elf \
27- C-XOR.elf
282
293CROSS_COMPILE = riscv-none-embed-
304RV32I_CFLAGS = -march=rv32i -mabi=ilp32 -O3 -nostdlib
@@ -33,28 +7,16 @@ CFLAGS = -O3 -Wall
337LDFLAGS = -lelf
348
359RUN_TARGET := ./emu-rv32i
36- WORK_DIR = work/rv32imc
37-
38-
39-
40-
4110
4211
4312all : $(BINS )
4413
45- check-all :
46- make $(patsubst % .elf, % .log, $(TEST_TARGETS ) )
47-
4814emu-rv32i : emu-rv32i.c
4915 $(CC ) $(CFLAGS ) -o $@ $< $(LDFLAGS )
5016
5117test1 : test1.c
5218 $(CROSS_COMPILE ) gcc $(RV32I_CFLAGS ) -o $@ $<
5319
54-
55- % .log : $(WORK_DIR ) /% .elf
56- $(RUN_TARGET ) --elf $< --signature$(patsubst % .elf, % .signature.output, $< ) --output sig.txt
57-
5820check : $(BINS )
5921 ./emu-rv32i test1
6022
You can’t perform that action at this time.
0 commit comments