File tree Expand file tree Collapse file tree 2 files changed +25
-7
lines changed
Expand file tree Collapse file tree 2 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 11TARGET = mei
22
3- $(TARGET ) .objdump : $(TARGET )
4- riscv64-unknown-elf-objdump -D $(TARGET ) > $(TARGET ) .objdump
3+ $(TARGET ) .objdump : $(TARGET ) .elf
4+ riscv64-unknown-elf-objdump -D $(TARGET ) .elf > $(TARGET ) .objdump
55
6- % : % .S Makefile
6+ % .elf : % .S Makefile
77 riscv64-unknown-elf-gcc -g -o $@ -march=rv64gc -mabi=lp64 -mcmodel=medany \
8- -nostartfiles -T../../link/link .ld $<
8+ -nostartfiles -Tlink .ld $<
99
1010sim :
11- spike -d +signature=$(TARGET ) .signature.output +signature-granularity=8 $(TARGET )
11+ spike -d +signature=$(TARGET ) .signature.output +signature-granularity=8 $(TARGET ) .elf
1212 diff --ignore-case $(TARGET ) .signature.output $(TARGET ) .reference_output || exit
1313 echo " Signature matches! Success!"
1414
1515wally :
16- wsim rv64gc --elf $(TARGET ) --lockstepverbose
16+ wsim rv64gc --elf $(TARGET ) .elf --lockstepverbose
1717
1818clean :
19- rm -f $(TARGET ) * .objdump* * .signature.output * .elf* * .memfile
19+ rm -f $(TARGET ) .elf * .objdump* * .signature.output * .elf* * .memfile
Original file line number Diff line number Diff line change 1+ OUTPUT_ARCH ( " riscv" )
2+ ENTRY(rvtest_entry_point)
3+
4+ SECTIONS
5+ {
6+ . = 0x80000000 ;
7+ .text : { *(.text .init ) *(.text ) }
8+ . = ALIGN (0x1000 );
9+ .tohost : { *(.tohost ) }
10+ . = ALIGN (0x4000 );
11+ .data : { *(.data ) }
12+ .data.string : { *(.data .string )}
13+ . = ALIGN (0x1000 );
14+ .bss : { *(.bss ) }
15+ . = ALIGN (0x1000 );
16+ .text : { *(.text .main ) }
17+ _end = .;
18+ }
You can’t perform that action at this time.
0 commit comments