mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Properly jit the break instruction.
Otherwise, it just keeps on going past it. We never want to hit this anyway, but it's good to know if we do.
This commit is contained in:
parent
ec8f080491
commit
44b5adeaac
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user