tentative fix for rec x86/win

This commit is contained in:
Flyinghead 2018-07-23 20:26:12 +02:00
parent 960904c401
commit 3d2de4a0dc
1 changed files with 5 additions and 1 deletions

View File

@ -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;