From 3d2de4a0dc276ca815058c551508d3a037ceda1b Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Mon, 23 Jul 2018 20:26:12 +0200 Subject: [PATCH] tentative fix for rec x86/win --- core/rec-x86/rec_x86_asm.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/rec-x86/rec_x86_asm.cpp b/core/rec-x86/rec_x86_asm.cpp index db2975af3..6f53589d7 100644 --- a/core/rec-x86/rec_x86_asm.cpp +++ b/core/rec-x86/rec_x86_asm.cpp @@ -59,6 +59,8 @@ naked void ngen_FailedToFindBlock_() } } +const u32 cpurun_offset=offsetof(Sh4RCB,cntx.CpuRunning); + void (*ngen_FailedToFindBlock)()=&ngen_FailedToFindBlock_; naked void ngen_mainloop(void* cntx) { @@ -93,7 +95,9 @@ do_iter: pop ecx; call rdv_DoInterrupts; mov ecx,eax; - cmp byte ptr [sh4_int_bCpuRun],0; + mov edx,[p_sh4rcb]; + add edx,[cpu_run_offset]; + cmp dword ptr [edx],0; jz cleanup; jmp no_update;