summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2015-05-13 14:10:56 -0400
committerGravatar Lioncash2015-05-13 14:11:03 -0400
commit832c130ed1c55c00b667651df0a6e6baa4e499c0 (patch)
treee6b799c0f4469cb667cf4e891c627898e2bd394e
parentMerge pull request #756 from purpasmart96/ptm_service_changes (diff)
downloadyuzu-832c130ed1c55c00b667651df0a6e6baa4e499c0.tar.gz
yuzu-832c130ed1c55c00b667651df0a6e6baa4e499c0.tar.xz
yuzu-832c130ed1c55c00b667651df0a6e6baa4e499c0.zip
dyncom: Fix decoding of BKPT's immediate
A shift here is intended since the representation is imm12:imm4
Diffstat (limited to '')
-rw-r--r--src/core/arm/dyncom/arm_dyncom_interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
index 315b4cc91..8c52bdb72 100644
--- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
+++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
@@ -1393,7 +1393,7 @@ static ARM_INST_PTR INTERPRETER_TRANSLATE(bkpt)(unsigned int inst, int index)
1393 inst_base->br = NON_BRANCH; 1393 inst_base->br = NON_BRANCH;
1394 inst_base->load_r15 = 0; 1394 inst_base->load_r15 = 0;
1395 1395
1396 inst_cream->imm = BITS(inst, 8, 19) | BITS(inst, 0, 3); 1396 inst_cream->imm = (BITS(inst, 8, 19) << 4) | BITS(inst, 0, 3);
1397 1397
1398 return inst_base; 1398 return inst_base;
1399} 1399}