diff options
author | RSDuck <RSDuck@users.noreply.github.com> | 2021-08-04 14:58:41 +0200 |
---|---|---|
committer | RSDuck <RSDuck@users.noreply.github.com> | 2021-08-04 14:58:41 +0200 |
commit | b28a9e4d24b42a59de5e333c99aec6dcc30435f0 (patch) | |
tree | 8aa7dbb06518e6520ceb001174d62779019d01dc /src/ARMJIT.cpp | |
parent | f900792dc07620b05c9538cec8ff1ac66ea69dd7 (diff) |
JIT: don't lengthen blocks on a skipped SVC
SVC would need special handling because of the bank switching
Diffstat (limited to 'src/ARMJIT.cpp')
-rw-r--r-- | src/ARMJIT.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ARMJIT.cpp b/src/ARMJIT.cpp index 3ffb31d..fd57399 100644 --- a/src/ARMJIT.cpp +++ b/src/ARMJIT.cpp @@ -779,7 +779,8 @@ void CompileBlock(ARM* cpu) JIT_DEBUGPRINT("merged BL\n"); } - if (instrs[i].Info.Branches() && Config::JIT_BranchOptimisations) + if (instrs[i].Info.Branches() && Config::JIT_BranchOptimisations + && instrs[i].Info.Kind != (thumb ? ARMInstrInfo::tk_SVC : ARMInstrInfo::ak_SVC)) { bool hasBranched = cpu->R[15] != r15; @@ -845,6 +846,7 @@ void CompileBlock(ARM* cpu) if (!hasBranched && cond < 0xE && i + 1 < Config::JIT_MaxBlockSize) { + JIT_DEBUGPRINT("block lengthened by untaken branch\n"); instrs[i].Info.EndBlock = false; instrs[i].BranchFlags |= branch_FollowCondNotTaken; } |