summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-27 20:15:00 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-27 20:15:00 +0000
commitc2d551ff5acc0e236fe7fd8dfb1ce290d9ff4d99 (patch)
tree786eee7bdf52ced6206c27ce4345aa5069108c7e /arm-dis.c
parentARM Thumb syscalls (Paul Brook) (diff)
downloadqemu-kvm-c2d551ff5acc0e236fe7fd8dfb1ce290d9ff4d99.tar.gz
qemu-kvm-c2d551ff5acc0e236fe7fd8dfb1ce290d9ff4d99.tar.bz2
qemu-kvm-c2d551ff5acc0e236fe7fd8dfb1ce290d9ff4d99.zip
ARM thumb disassembly (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1416 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'arm-dis.c')
-rw-r--r--arm-dis.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arm-dis.c b/arm-dis.c
index a84d91b48..1e027efc7 100644
--- a/arm-dis.c
+++ b/arm-dis.c
@@ -1556,6 +1556,11 @@ print_insn_arm (pc, info)
}
is_thumb = force_thumb;
+ if (pc & 1)
+ {
+ is_thumb = 1;
+ pc &= ~(bfd_vma) 1;
+ }
#if 0
if (!is_thumb && info->symbols != NULL)