Adds a way to simulate the programs with spike, to compare PCs and debug
This commit is contained in:
11
bench/crt.S
11
bench/crt.S
@@ -4,13 +4,8 @@
|
||||
|
||||
_start:
|
||||
# réservation d'une (petite) zone de mémoire pour la pile
|
||||
la sp, stack + STACK_SIZE
|
||||
la sp, _stack_start
|
||||
# appel de main, sans espoir de retour !
|
||||
jal main
|
||||
1: j 1b
|
||||
|
||||
.bss
|
||||
.align 4
|
||||
.global stack
|
||||
stack:
|
||||
.skip STACK_SIZE
|
||||
.data
|
||||
.bss
|
||||
|
||||
Reference in New Issue
Block a user