early-access version 2986

This commit is contained in:
pineappleEA 2022-10-02 07:52:22 +02:00
parent bfa71ff490
commit 09f7fab85a
2 changed files with 6 additions and 12 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 2985. This is the source code for early-access 2986.
## Legal Notice ## Legal Notice

View File

@ -429,17 +429,11 @@ void MacroJITx64Impl::Compile_Branch(Macro::Opcode opcode) {
Xbyak::Label handle_post_exit{}; Xbyak::Label handle_post_exit{};
Xbyak::Label skip{}; Xbyak::Label skip{};
jmp(skip, T_NEAR); jmp(skip, T_NEAR);
if (opcode.is_exit) {
L(handle_post_exit); L(handle_post_exit);
// Execute 1 instruction xor_(BRANCH_HOLDER, BRANCH_HOLDER);
mov(BRANCH_HOLDER, end_of_code); jmp(labels[jump_address], T_NEAR);
// Jump to next instruction to skip delay slot check
jmp(labels[jump_address], T_NEAR);
} else {
L(handle_post_exit);
xor_(BRANCH_HOLDER, BRANCH_HOLDER);
jmp(labels[jump_address], T_NEAR);
}
L(skip); L(skip);
mov(BRANCH_HOLDER, handle_post_exit); mov(BRANCH_HOLDER, handle_post_exit);
jmp(delay_skip[pc], T_NEAR); jmp(delay_skip[pc], T_NEAR);