opcodes: blackfin: fix decoding of 32bit addresses on 64bit systems
commit9d4201645fbaa67738d6efda81a068251cb22064
authorMike Frysinger <vapier@gentoo.org>
Wed, 22 Sep 2010 21:55:17 +0000 (22 21:55 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 22 Sep 2010 21:55:17 +0000 (22 21:55 +0000)
tree5b9ad31852840efa00c03bba6040f85f657eb3f6
parentba10c2ddddded112df089db8fa318e172c50bb14
opcodes: blackfin: fix decoding of 32bit addresses on 64bit systems

The Blackfin ISA is very exact with regards to address truncation when
under/over flowing its 32bit range.  On a 32bit system, things work the
same and so addresses are decoded properly.  On a 64bit system though,
the decoded addresses may include the bits that are supposed to have
been truncated.  So force a 32bit truncation after the address has been
calculated.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
opcodes/ChangeLog
opcodes/bfin-dis.c