diff --git a/sdk/bsp/crt0.S b/sdk/bsp/crt0.S index b009a46..56bd79b 100644 --- a/sdk/bsp/crt0.S +++ b/sdk/bsp/crt0.S @@ -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