Merge pull request #718 from cxd4/rsp-recompiler

[RSP] Execute recompiler CPU without SEH for non-MSVC.
This commit is contained in:
zilmar 2015-10-30 13:16:50 +11:00
commit d21f91e81a
1 changed files with 7 additions and 1 deletions

View File

@ -904,8 +904,9 @@ DWORD RunRecompilerCPU ( DWORD Cycles ) {
StartTimer((DWORD)Timer_Compiling);
}
memset(&RspCode, 0, sizeof(RspCode));
#if defined(_MSC_VER)
__try {
memset(&RspCode, 0, sizeof(RspCode));
BuildBranchLabels();
DetectGPRConstants(&RspCode);
CompilerRSPBlock();
@ -914,6 +915,11 @@ DWORD RunRecompilerCPU ( DWORD Cycles ) {
ClearAllx86Code();
continue;
}
#else
BuildBranchLabels();
DetectGPRConstants(&RspCode);
CompilerRSPBlock();
#endif
Block = *(JumpTable + (*PrgCount >> 2));