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 .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