Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 3ccad56

Browse files
author
f74064054@mail.ncku.edu.tw
committed
Modified the Makefile to enable the funciton of validation
1 parent 5056a05 commit 3ccad56

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

Makefile

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
BINS = 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
228

329
CROSS_COMPILE = riscv-none-embed-
430
RV32I_CFLAGS = -march=rv32i -mabi=ilp32 -O3 -nostdlib
@@ -8,11 +34,17 @@ LDFLAGS = -lelf
834

935
RUN_TARGET := ./emu-rv32i
1036
WORK_DIR = work/rv32imc
11-
DIFF = $(diff a b)
37+
38+
39+
40+
1241

1342

1443
all: $(BINS)
1544

45+
check-all:
46+
make $(patsubst %.elf, %.log, $(TEST_TARGETS))
47+
1648
emu-rv32i: emu-rv32i.c
1749
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
1850

0 commit comments

Comments
 (0)