CPU/CodeCache: Fix event kicking for Cached Interpreter

This commit is contained in:
Stenzek 2024-12-12 16:24:16 +10:00
parent cdcf05a878
commit c3a2156c79
No known key found for this signature in database
1 changed files with 6 additions and 3 deletions

View File

@ -752,11 +752,12 @@ template<PGXPMode pgxp_mode>
if (g_state.pending_ticks >= g_state.downcount) \
break;
for (;;)
{
if (g_state.pending_ticks >= g_state.downcount)
TimingEvents::RunEvents();
while (g_state.pending_ticks < g_state.downcount)
for (;;)
{
for (;;)
{
#if 0
LogCurrentState();
@ -830,6 +831,8 @@ template<PGXPMode pgxp_mode>
CHECK_DOWNCOUNT();
continue;
}
TimingEvents::RunEvents();
}
}