sdk:bsp:lib: clear sim result flags when start running

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/4/head
liangkangnan 2021-11-03 11:48:02 +08:00
parent 15928977e1
commit ecd4ecafc6
1 changed files with 2 additions and 6 deletions

View File

@ -10,8 +10,8 @@ _start:
.option pop
la sp, _sp
#ifdef SIMULATION
li x26, 0x00
li x27, 0x00
/* clear sim result flags */
csrrwi x0, sstatus, 0x0
#endif
/* Load data section */
@ -45,9 +45,5 @@ _start:
li a1, 0
call main
#ifdef SIMULATION
li x26, 0x01
#endif
loop:
j loop