Skip to content
Snippets Groups Projects
Unverified Commit 9175bffb authored by Hexagon12's avatar Hexagon12 Committed by GitHub
Browse files

Merge pull request #2466 from yuzu-emu/mme-exit-delay-slot

GPU/MMEInterpreter: Ignore the 'exit' flag when it's executed inside a delay slot.
parents ac3775e6 9ef45f00
No related branches found
No related tags found
No related merge requests found
......@@ -118,10 +118,10 @@ bool MacroInterpreter::Step(u32 offset, bool is_delay_slot) {
static_cast<u32>(opcode.operation.Value()));
}
if (opcode.is_exit) {
// An instruction with the Exit flag will not actually
// cause an exit if it's executed inside a delay slot.
if (opcode.is_exit && !is_delay_slot) {
// Exit has a delay slot, execute the next instruction
// Note: Executing an exit during a branch delay slot will cause the instruction at the
// branch target to be executed before exiting.
Step(offset, true);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment