diff options
author | Lioncash <mathew1800@gmail.com> | 2015-05-13 14:10:56 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-05-13 14:11:03 -0400 |
commit | 832c130ed1c55c00b667651df0a6e6baa4e499c0 (patch) | |
tree | e6b799c0f4469cb667cf4e891c627898e2bd394e /src/core/arm/dyncom/arm_dyncom_interpreter.cpp | |
parent | 7d21b0663bf7b7eac070dd5a7307ded6584ba3b5 (diff) |
dyncom: Fix decoding of BKPT's immediate
A shift here is intended since the representation is imm12:imm4
Diffstat (limited to 'src/core/arm/dyncom/arm_dyncom_interpreter.cpp')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom_interpreter.cpp | 2 |
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 315b4cc9..8c52bdb7 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) inst_base->br = NON_BRANCH; inst_base->load_r15 = 0; - inst_cream->imm = BITS(inst, 8, 19) | BITS(inst, 0, 3); + inst_cream->imm = (BITS(inst, 8, 19) << 4) | BITS(inst, 0, 3); return inst_base; } |