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 1
1
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
28
2
29
3
CROSS_COMPILE = riscv-none-embed-
30
4
RV32I_CFLAGS = -march=rv32i -mabi=ilp32 -O3 -nostdlib
@@ -33,28 +7,16 @@ CFLAGS = -O3 -Wall
33
7
LDFLAGS = -lelf
34
8
35
9
RUN_TARGET := ./emu-rv32i
36
- WORK_DIR = work/rv32imc
37
-
38
-
39
-
40
-
41
10
42
11
43
12
all : $(BINS )
44
13
45
- check-all :
46
- make $(patsubst % .elf, % .log, $(TEST_TARGETS ) )
47
-
48
14
emu-rv32i : emu-rv32i.c
49
15
$(CC ) $(CFLAGS ) -o $@ $< $(LDFLAGS )
50
16
51
17
test1 : test1.c
52
18
$(CROSS_COMPILE ) gcc $(RV32I_CFLAGS ) -o $@ $<
53
19
54
-
55
- % .log : $(WORK_DIR ) /% .elf
56
- $(RUN_TARGET ) --elf $< --signature$(patsubst % .elf, % .signature.output, $< ) --output sig.txt
57
-
58
20
check : $(BINS )
59
21
./emu-rv32i test1
60
22
You can’t perform that action at this time.
0 commit comments