diff options
| author | 2014-04-12 01:36:39 -0400 | |
|---|---|---|
| committer | 2014-04-12 01:36:39 -0400 | |
| commit | 4d8831890321c11e2e29ed9bc87c8a48841b702e (patch) | |
| tree | ea8dd68bf261e34c49593d0bd812adc91c084799 | |
| parent | added a SETABORT method that does not update LR (for HLE'd SVC that does not ... (diff) | |
| download | yuzu-4d8831890321c11e2e29ed9bc87c8a48841b702e.tar.gz yuzu-4d8831890321c11e2e29ed9bc87c8a48841b702e.tar.xz yuzu-4d8831890321c11e2e29ed9bc87c8a48841b702e.zip | |
hacked CPU interpreter to ignore branch on SVC instruction (as we are HLEing this...)
| -rw-r--r-- | src/core/arm/interpreter/arminit.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/arm/interpreter/arminit.cpp b/src/core/arm/interpreter/arminit.cpp index cdbd02f3c..a8aeecdea 100644 --- a/src/core/arm/interpreter/arminit.cpp +++ b/src/core/arm/interpreter/arminit.cpp | |||
| @@ -530,9 +530,13 @@ ARMul_Abort (ARMul_State * state, ARMword vector) | |||
| 530 | isize); | 530 | isize); |
| 531 | break; | 531 | break; |
| 532 | case ARMul_SWIV: /* Software Interrupt */ | 532 | case ARMul_SWIV: /* Software Interrupt */ |
| 533 | SETABORT (IBIT, state->prog32Sig ? SVC32MODE : SVC26MODE, | 533 | // Modified SETABORT that doesn't branch to a SVC vector as we are implementing this in HLE |
| 534 | // Instead of doing normal routine, backup R15 by one instruction (this is what PC will get | ||
| 535 | // set to, making it the next instruction after the SVC call), and skip setting the LR. | ||
| 536 | SETABORT_SKIPBRANCH (IBIT, state->prog32Sig ? SVC32MODE : SVC26MODE, | ||
| 534 | isize); | 537 | isize); |
| 535 | break; | 538 | state->Reg[15] -= 4; |
| 539 | return; | ||
| 536 | case ARMul_PrefetchAbortV: /* Prefetch Abort */ | 540 | case ARMul_PrefetchAbortV: /* Prefetch Abort */ |
| 537 | state->AbortAddr = 1; | 541 | state->AbortAddr = 1; |
| 538 | SETABORT (IBIT, state->prog32Sig ? ABORT32MODE : SVC26MODE, | 542 | SETABORT (IBIT, state->prog32Sig ? ABORT32MODE : SVC26MODE, |