summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-10-01 07:32:24 +0200
committerLiam <byteslice@airmail.cc>2022-10-01 07:32:24 +0200
commitb80f7faebe83864b7c1f53a5cc4fc22b9901c853 (patch)
treefc1699716a45173455ad517c9d606498a7eefc84 /src
parentMerge pull request #8910 from vonchenplus/astc_decode_error (diff)
downloadyuzu-b80f7faebe83864b7c1f53a5cc4fc22b9901c853.tar
yuzu-b80f7faebe83864b7c1f53a5cc4fc22b9901c853.tar.gz
yuzu-b80f7faebe83864b7c1f53a5cc4fc22b9901c853.tar.bz2
yuzu-b80f7faebe83864b7c1f53a5cc4fc22b9901c853.tar.lz
yuzu-b80f7faebe83864b7c1f53a5cc4fc22b9901c853.tar.xz
yuzu-b80f7faebe83864b7c1f53a5cc4fc22b9901c853.tar.zst
yuzu-b80f7faebe83864b7c1f53a5cc4fc22b9901c853.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/macro/macro_jit_x64.cpp16
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 aca25d902..30d618695 100644
--- a/src/video_core/macro/macro_jit_x64.cpp
+++ b/src/video_core/macro/macro_jit_x64.cpp
@@ -429,17 +429,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);