forked from riscv-non-isa/tg-nexus-trace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
21 lines (19 loc) · 990 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
NexRv.exe : NexRv.c NexRvDeco.c NexRvEnco.c NexRvDump.c NexRvInfo.c NexRvConv.c NexRv.h NexRvMsg.h NexRvInfo.h
gcc -O3 NexRv.c NexRvDeco.c NexRvEnco.c NexRvDump.c NexRvInfo.c NexRvConv.c -o NexRv.exe
# Below are two test-cases
# TODO: This below is just example (t1-*.* files are not in GIT yet)
t1:
rem Running test t1 ...
rem ****************************************************************
rem ** These below are excluded as t1-info.txt is in GIT already
rem ****************************************************************
rem NOTE: '@' below should be replaced by redirection character!
rem riscv-objdump -d t1.elf @t1-objd.txt
rem NexTr -conv @t1-objd.txt @t1-info.txt
rem ****************************************************************
NexRv -deco t1-nex.bin -info t1-info.txt >t1-pc1.txt
tail ta-pc1.txt
NexRv -enco t1-pc1.txt -nex t1-nex2.bin
NexRv -deco t1-nex2.bin -info t1-info.txt >t1-pc2.txt
tail ta-pc2.txt
cmp t1-pc1.txt t1-pc2.txt