mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-23 22:33:37 +01:00
Merge pull request #557 from unknownbrackets/jit-minor
Properly jit the break instruction
This commit is contained in:
commit
ccada661df
6 files changed
+18
-2
No files matched your search
@@ -422,4 +422,11 @@ void Jit::Comp_Syscall(u32 op)
|
||||
js.compiling = false;
|
||||
}
|
||||
|
||||
void Jit::Comp_Break(u32 op)
|
||||
{
|
||||
Comp_Generic(op);
|
||||
WriteSyscallExit();
|
||||
js.compiling = false;
|
||||
}
|
||||
|
||||
} // namespace Mipscomp
|
||||
@@ -89,6 +89,7 @@ public:
|
||||
void Comp_Jump(u32 op);
|
||||
void Comp_JumpReg(u32 op);
|
||||
void Comp_Syscall(u32 op);
|
||||
void Comp_Break(u32 op);
|
||||
|
||||
void Comp_IType(u32 op);
|
||||
void Comp_RType3(u32 op);
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace MIPSInt
|
||||
|
||||
void Int_Break(u32 op)
|
||||
{
|
||||
DEBUG_LOG(CPU, "BREAK!");
|
||||
ERROR_LOG(CPU, "BREAK!");
|
||||
coreState = CORE_STEPPING;
|
||||
PC += 4;
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ const MIPSInstruction tableSpecial[64] = /// 000000 ...... ...... .......... xxx
|
||||
INSTR("movz", &Jit::Comp_RType3, Dis_RType3, Int_RType3, OUT_RD|IN_RS|IN_RT),
|
||||
INSTR("movn", &Jit::Comp_RType3, Dis_RType3, Int_RType3, OUT_RD|IN_RS|IN_RT),
|
||||
INSTR("syscall", &Jit::Comp_Syscall, Dis_Syscall, Int_Syscall,0),
|
||||
INSTR("break", &Jit::Comp_Generic, Dis_Generic, Int_Break, 0),
|
||||
INSTR("break", &Jit::Comp_Break, Dis_Generic, Int_Break, 0),
|
||||
{-2},
|
||||
INSTR("sync", &Jit::Comp_Generic, Dis_Generic, Int_Sync, 0),
|
||||
|
||||
|
||||
@@ -506,4 +506,11 @@ void Jit::Comp_Syscall(u32 op)
|
||||
js.compiling = false;
|
||||
}
|
||||
|
||||
void Jit::Comp_Break(u32 op)
|
||||
{
|
||||
Comp_Generic(op);
|
||||
WriteSyscallExit();
|
||||
js.compiling = false;
|
||||
}
|
||||
|
||||
} // namespace Mipscomp
|
||||
@@ -122,6 +122,7 @@ public:
|
||||
void Comp_Jump(u32 op);
|
||||
void Comp_JumpReg(u32 op);
|
||||
void Comp_Syscall(u32 op);
|
||||
void Comp_Break(u32 op);
|
||||
|
||||
void Comp_IType(u32 op);
|
||||
void Comp_RType3(u32 op);
|
||||
|
||||
Reference in new issue
Block a user