sdk:bsp:lib: clear sim result flags when start running
Signed-off-by: liangkangnan <liangkangnan@163.com>pull/4/head
parent
15928977e1
commit
ecd4ecafc6
|
@ -10,8 +10,8 @@ _start:
|
||||||
.option pop
|
.option pop
|
||||||
la sp, _sp
|
la sp, _sp
|
||||||
#ifdef SIMULATION
|
#ifdef SIMULATION
|
||||||
li x26, 0x00
|
/* clear sim result flags */
|
||||||
li x27, 0x00
|
csrrwi x0, sstatus, 0x0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Load data section */
|
/* Load data section */
|
||||||
|
@ -45,9 +45,5 @@ _start:
|
||||||
li a1, 0
|
li a1, 0
|
||||||
call main
|
call main
|
||||||
|
|
||||||
#ifdef SIMULATION
|
|
||||||
li x26, 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
loop:
|
loop:
|
||||||
j loop
|
j loop
|
||||||
|
|
Loading…
Reference in New Issue