From b24afe826724e0ba6aaf8278a542d0f392c420ad Mon Sep 17 00:00:00 2001 From: JordanTheToaster Date: Sat, 4 Oct 2025 19:25:43 +0100 Subject: [PATCH] microVU: Ignore MAC flags in block match if not required --- pcsx2/x86/microVU.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pcsx2/x86/microVU.h b/pcsx2/x86/microVU.h index 4c0daa4a75..4d4f3e2533 100644 --- a/pcsx2/x86/microVU.h +++ b/pcsx2/x86/microVU.h @@ -233,7 +233,13 @@ public: const u64 quick64 = pState->quick64[0]; for (const microBlockLinkRef& ref : quickLookup) { - if (ref.quick != quick64) continue; + // if we're using the flag hack, ignore the mac flags going in to the new block too if an exact match wasn't requested. + if (mVUsFlagHack) + { + if ((ref.quick & ~0x0C04) != (quick64 & ~0x0C04)) continue; + } + else if (ref.quick != quick64) continue; + if (doConstProp && (ref.pBlock->pState.vi15 != pState->vi15)) continue; if (doConstProp && (ref.pBlock->pState.vi15v != pState->vi15v)) continue; return ref.pBlock;