diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-05 05:08:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 05:08:02 +0200 |
commit | fc0ace6048a12ba15b873ad9d633ed7cfa11f070 (patch) | |
tree | 0a4b917eedca70acd990287e1220e521fcbc8b4d | |
parent | Merge pull request #9010 from liamwhite/buttwise (diff) | |
parent | macro_jit_x64: cancel exit for taken branch (diff) | |
download | yuzu-fc0ace6048a12ba15b873ad9d633ed7cfa11f070.tar yuzu-fc0ace6048a12ba15b873ad9d633ed7cfa11f070.tar.gz yuzu-fc0ace6048a12ba15b873ad9d633ed7cfa11f070.tar.bz2 yuzu-fc0ace6048a12ba15b873ad9d633ed7cfa11f070.tar.lz yuzu-fc0ace6048a12ba15b873ad9d633ed7cfa11f070.tar.xz yuzu-fc0ace6048a12ba15b873ad9d633ed7cfa11f070.tar.zst yuzu-fc0ace6048a12ba15b873ad9d633ed7cfa11f070.zip |
-rw-r--r-- | src/video_core/macro/macro_jit_x64.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp index 3b55228b9..a302a9603 100644 --- a/src/video_core/macro/macro_jit_x64.cpp +++ b/src/video_core/macro/macro_jit_x64.cpp @@ -401,17 +401,11 @@ void MacroJITx64Impl::Compile_Branch(Macro::Opcode opcode) { Xbyak::Label handle_post_exit{}; Xbyak::Label skip{}; jmp(skip, T_NEAR); - if (opcode.is_exit) { - L(handle_post_exit); - // Execute 1 instruction - mov(BRANCH_HOLDER, end_of_code); - // 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(handle_post_exit); + xor_(BRANCH_HOLDER, BRANCH_HOLDER); + jmp(labels[jump_address], T_NEAR); + L(skip); mov(BRANCH_HOLDER, handle_post_exit); jmp(delay_skip[pc], T_NEAR); |