> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 23:51:57 up 4 days, 18:57, 1 user, load average: 0.32, 0.60, 0.79
This commit is contained in:
@ -63,6 +63,7 @@ __am_asm_trap:
|
||||
LOAD t1, OFFSET_STATUS(sp)
|
||||
LOAD t2, OFFSET_EPC(sp)
|
||||
csrw mstatus, t1
|
||||
addi t2, t2, 4
|
||||
csrw mepc, t2
|
||||
|
||||
MAP(REGS, POP)
|
||||
|
@ -6,7 +6,6 @@ static Context* do_event(Event e, Context* c) {
|
||||
default: panic("Unhandled event ID = %d", e.event);
|
||||
}
|
||||
|
||||
c->mepc += 4;
|
||||
return c;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user