summaryrefslogtreecommitdiffstats
path: root/src/core/arm
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-07-21 09:51:36 +0200
committerLioncash <mathew1800@gmail.com>2015-07-21 09:56:29 +0200
commitc2689b8c2c6f0ac023eddb25d98da6bc1fa95205 (patch)
tree4d5380eb7b032f0090370ea34556558e59eb5742 /src/core/arm
parentMerge pull request #959 from Subv/home (diff)
downloadyuzu-c2689b8c2c6f0ac023eddb25d98da6bc1fa95205.tar
yuzu-c2689b8c2c6f0ac023eddb25d98da6bc1fa95205.tar.gz
yuzu-c2689b8c2c6f0ac023eddb25d98da6bc1fa95205.tar.bz2
yuzu-c2689b8c2c6f0ac023eddb25d98da6bc1fa95205.tar.lz
yuzu-c2689b8c2c6f0ac023eddb25d98da6bc1fa95205.tar.xz
yuzu-c2689b8c2c6f0ac023eddb25d98da6bc1fa95205.tar.zst
yuzu-c2689b8c2c6f0ac023eddb25d98da6bc1fa95205.zip
Diffstat (limited to 'src/core/arm')
-rw-r--r--src/core/arm/dyncom/arm_dyncom_interpreter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
index e40f3fa93..785f39566 100644
--- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
+++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
@@ -6248,7 +6248,8 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) {
SWI_INST:
{
if (inst_base->cond == 0xE || CondPassed(cpu, inst_base->cond)) {
- SVC::CallSVC(Memory::Read32(cpu->Reg[15]));
+ swi_inst* const inst_cream = (swi_inst*)inst_base->component;
+ SVC::CallSVC(inst_cream->num & 0xFFFF);
}
cpu->Reg[15] += GET_INST_SIZE(cpu);