summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-08-15 00:17:32 +0200
committerGitHub <noreply@github.com>2016-08-15 00:17:32 +0200
commitc3c6ac38e0a02b6400a73e218b0f3d90e9c08af8 (patch)
tree75f19adc5a46334a3794221dabc8624b3bb6ceeb
parentMerge pull request #1936 from jroweboy/qt5.7-fix (diff)
parentDyncom: Correct implementation of STM for R15 (diff)
downloadyuzu-c3c6ac38e0a02b6400a73e218b0f3d90e9c08af8.tar
yuzu-c3c6ac38e0a02b6400a73e218b0f3d90e9c08af8.tar.gz
yuzu-c3c6ac38e0a02b6400a73e218b0f3d90e9c08af8.tar.bz2
yuzu-c3c6ac38e0a02b6400a73e218b0f3d90e9c08af8.tar.lz
yuzu-c3c6ac38e0a02b6400a73e218b0f3d90e9c08af8.tar.xz
yuzu-c3c6ac38e0a02b6400a73e218b0f3d90e9c08af8.tar.zst
yuzu-c3c6ac38e0a02b6400a73e218b0f3d90e9c08af8.zip
-rw-r--r--src/core/arm/dyncom/arm_dyncom_interpreter.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
index 01d5d478e..6d5fb7aec 100644
--- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
+++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
@@ -3228,7 +3228,7 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) {
addr += 4;
}
if (BIT(inst_cream->inst, 15)) {
- cpu->WriteMemory32(addr, cpu->Reg_usr[1] + 8);
+ cpu->WriteMemory32(addr, cpu->Reg[15] + 8);
}
} else {
for (int i = 0; i < 15; i++) {
@@ -3243,8 +3243,9 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) {
}
// Check PC reg
- if (BIT(inst_cream->inst, 15))
- cpu->WriteMemory32(addr, cpu->Reg_usr[1] + 8);
+ if (BIT(inst_cream->inst, 15)) {
+ cpu->WriteMemory32(addr, cpu->Reg[15] + 8);
+ }
}
}
cpu->Reg[15] += cpu->GetInstructionSize();