mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-16 15:57:49 +00:00
Fix the offset in Thumb bl instruction.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4204 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
2637a3beb9
commit
6a0d8a1d23
@ -6912,7 +6912,7 @@ static int disas_thumb2_insn(CPUState *env, DisasContext *s, uint16_t insn_hw1)
|
||||
/* Second half of bl. */
|
||||
offset = ((insn & 0x7ff) << 1) | 1;
|
||||
tmp = load_reg(s, 14);
|
||||
tcg_gen_addi_i32(tmp, tmp, 14);
|
||||
tcg_gen_addi_i32(tmp, tmp, offset);
|
||||
|
||||
tmp2 = new_tmp();
|
||||
tcg_gen_movi_i32(tmp2, s->pc | 1);
|
||||
|
Loading…
Reference in New Issue
Block a user