Skip to content

Commit

Permalink
microVU: avoid half completed program loading null block
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Aug 3, 2021
1 parent 958e27c commit 8f82cd1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pcsx2/x86/microVU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@ _mVUt __fi void* mVUsearchProg(u32 startPC, uptr pState) {
quick.prog = it[0];
list->erase(it);
list->push_front(quick.prog);

// Sanity check, in case for some reason the program compilation aborted half way through (JALR for example)
if (quick.block == nullptr)
{
void* entryPoint = mVUblockFetch(mVU, startPC, pState);
return entryPoint;
}
return mVUentryGet(mVU, quick.block, startPC, pState);
}
}
Expand Down

0 comments on commit 8f82cd1

Please sign in to comment.