Merge pull request #557 from unknownbrackets/jit-minor

Properly jit the break instruction
This commit is contained in:
Henrik Rydgård committed 2013-02-01 00:59:58 -08:00
commit ccada661df
6 files changed
+18 -2

No files matched your search

+7
View File
@@ -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
+1
View File
@@ -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);
+1 -1
View File
@@ -179,7 +179,7 @@ namespace MIPSInt
void Int_Break(u32 op)
{
DEBUG_LOG(CPU, "BREAK!");
ERROR_LOG(CPU, "BREAK!");
coreState = CORE_STEPPING;
PC += 4;
}
+1 -1
View File
@@ -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),
+7
View File
@@ -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
+1
View File
@@ -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);