diff options
author | RSDuck <RSDuck@Github.com> | 2020-07-23 19:12:25 +0000 |
---|---|---|
committer | RSDuck <RSDuck@Github.com> | 2020-07-23 19:12:25 +0000 |
commit | e85d2e2cf3439a79305f7132fbcd9774385e9020 (patch) | |
tree | 9f799dde5356be43417c2d6cdb9b444c432e626d | |
parent | 961b4252e21e217878ef0cf36bee18a3784add84 (diff) |
Use the correct slow path for block read/write
-rw-r--r-- | src/ARMJIT_A64/ARMJIT_LoadStore.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ARMJIT_A64/ARMJIT_LoadStore.cpp b/src/ARMJIT_A64/ARMJIT_LoadStore.cpp index 6aad0eb..0bddf74 100644 --- a/src/ARMJIT_A64/ARMJIT_LoadStore.cpp +++ b/src/ARMJIT_A64/ARMJIT_LoadStore.cpp @@ -643,22 +643,22 @@ s32 Compiler::Comp_MemAccessBlock(int rn, BitSet16 regs, bool store, bool preinc if (Num == 0) { MOV(X3, RCPU); - switch (preinc * 2 | store) + switch (store * 2 | NDS::ConsoleType) { - case 0: QuickCallFunction(X4, SlowBlockTransfer9<false, false>); break; - case 1: QuickCallFunction(X4, SlowBlockTransfer9<false, true>); break; - case 2: QuickCallFunction(X4, SlowBlockTransfer9<true, false>); break; - case 3: QuickCallFunction(X4, SlowBlockTransfer9<true, true>); break; + case 0: QuickCallFunction(X4, SlowBlockTransfer9<false, 0>); break; + case 1: QuickCallFunction(X4, SlowBlockTransfer9<false, 1>); break; + case 2: QuickCallFunction(X4, SlowBlockTransfer9<true, 0>); break; + case 3: QuickCallFunction(X4, SlowBlockTransfer9<true, 1>); break; } } else { - switch (preinc * 2 | store) + switch (store * 2 | NDS::ConsoleType) { - case 0: QuickCallFunction(X4, SlowBlockTransfer7<false, false>); break; - case 1: QuickCallFunction(X4, SlowBlockTransfer7<false, true>); break; - case 2: QuickCallFunction(X4, SlowBlockTransfer7<true, false>); break; - case 3: QuickCallFunction(X4, SlowBlockTransfer7<true, true>); break; + case 0: QuickCallFunction(X4, SlowBlockTransfer7<false, 0>); break; + case 1: QuickCallFunction(X4, SlowBlockTransfer7<false, 1>); break; + case 2: QuickCallFunction(X4, SlowBlockTransfer7<true, 0>); break; + case 3: QuickCallFunction(X4, SlowBlockTransfer7<true, 1>); break; } } |