mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 08:42:45 +01:00
dyncom: Fix decoding of BKPT's immediate
A shift here is intended since the representation is imm12:imm4
This commit is contained in:
parent
7d21b0663b
commit
832c130ed1
1 changed files with 1 additions and 1 deletions
|
@ -1393,7 +1393,7 @@ static ARM_INST_PTR INTERPRETER_TRANSLATE(bkpt)(unsigned int inst, int index)
|
||||||
inst_base->br = NON_BRANCH;
|
inst_base->br = NON_BRANCH;
|
||||||
inst_base->load_r15 = 0;
|
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;
|
return inst_base;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue