mirror of https://github.com/PCSX2/pcsx2.git
microVU: avoid half completed program loading null block
This commit is contained in:
parent
958e27c782
commit
8f82cd11b9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue