diff --git a/core/rec-x64/rec_x64.cpp b/core/rec-x64/rec_x64.cpp index 102bfffd8..faa212040 100644 --- a/core/rec-x64/rec_x64.cpp +++ b/core/rec-x64/rec_x64.cpp @@ -2,6 +2,7 @@ #include "types.h" +#if HOST_CPU == CPU_X64 #include "hw/sh4/sh4_opcode_list.h" #include "hw/sh4/modules/ccn.h" #include "hw/sh4/sh4_interrupts.h" @@ -279,3 +280,4 @@ void ngen_CC_Finish(shil_opcode* op) x86e->Emit(op_add32, ESP, ngen_CC_BytesPushed); */ } +#endif \ No newline at end of file diff --git a/core/windows/winmain.cpp b/core/windows/winmain.cpp index 5fde0918c..37a128440 100644 --- a/core/windows/winmain.cpp +++ b/core/windows/winmain.cpp @@ -125,8 +125,7 @@ int ExeptionHandler(u32 dwCode, void* pExceptionPointers) { return EXCEPTION_CONTINUE_EXECUTION; } -#if !defined(HOST_NO_REC) && HOST_CPU == CPU_X64 - /* +#if !defined(HOST_NO_REC) && HOST_CPU != CPU_X64 else if ( ngen_Rewrite((unat&)ep->ContextRecord->Eip,*(unat*)ep->ContextRecord->Esp,ep->ContextRecord->Eax) ) { //remove the call from call stack @@ -135,7 +134,6 @@ int ExeptionHandler(u32 dwCode, void* pExceptionPointers) ep->ContextRecord->Ecx=ep->ContextRecord->Eax; return EXCEPTION_CONTINUE_EXECUTION; } - */ #endif else {