microVU: avoid half completed program loading null block

This commit is contained in:
refractionpcsx2 2021-08-03 11:52:15 +01:00
parent 958e27c782
commit 8f82cd11b9
1 changed files with 7 additions and 0 deletions

View File

@ -279,6 +279,13 @@ _mVUt __fi void* mVUsearchProg(u32 startPC, uptr pState) {
quick.prog = it[0]; quick.prog = it[0];
list->erase(it); list->erase(it);
list->push_front(quick.prog); 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); return mVUentryGet(mVU, quick.block, startPC, pState);
} }
} }