I have defined 2 functions:
void func1(uint32_t val){ asm("csrsi mstatus, 0x8"); asm("csrsi mstatus, 0x8"); } void func2(uint32_t