fix mips stackframe and exception

This commit is contained in:
bigmagic
2020-09-04 10:16:34 +08:00
parent cf622e5177
commit bd95f3a94f
4 changed files with 24 additions and 11 deletions
+2
View File
@@ -206,6 +206,8 @@
li v1, ~(ST0_CU1 | ST0_FR | ST0_IM)
and v0, v1
or v0, a0
li v1, (ST0_KX | ST0_SX | ST0_UX)
or v0, v1
mtc0 v0, CP0_STATUS
LONG_L v1, PT_EPC(sp)
MTC0 v1, CP0_EPC