mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
target/arm: Convert T16 adjust sp (immediate)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20190904193059.26202-56-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
90aa042115
commit
2e6a646d7b
2 changed files with 11 additions and 13 deletions
|
@ -10765,19 +10765,8 @@ static void disas_thumb_insn(DisasContext *s, uint32_t insn)
|
|||
/* misc */
|
||||
op = (insn >> 8) & 0xf;
|
||||
switch (op) {
|
||||
case 0:
|
||||
/*
|
||||
* 0b1011_0000_xxxx_xxxx
|
||||
* - ADD (SP plus immediate)
|
||||
* - SUB (SP minus immediate)
|
||||
*/
|
||||
tmp = load_reg(s, 13);
|
||||
val = (insn & 0x7f) * 4;
|
||||
if (insn & (1 << 7))
|
||||
val = -(int32_t)val;
|
||||
tcg_gen_addi_i32(tmp, tmp, val);
|
||||
store_sp_checked(s, tmp);
|
||||
break;
|
||||
case 0: /* add/sub (sp, immediate), in decodetree */
|
||||
goto illegal_op;
|
||||
|
||||
case 2: /* sign/zero extend. */
|
||||
ARCH(6);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue