aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-05-22 08:40:09 +0000
committerNick Clifton <nickc@redhat.com>2006-05-22 08:40:09 +0000
commita854efa328f6271438186f83b052e6b739b73a8a (patch)
treeafe62b8e941acc5e4eb33fb9e7dbfb696ece853f /opcodes
parent0bd7906139b31dec05d07c7fb32f32b1df7c79c9 (diff)
downloadgdb-a854efa328f6271438186f83b052e6b739b73a8a.zip
gdb-a854efa328f6271438186f83b052e6b739b73a8a.tar.gz
gdb-a854efa328f6271438186f83b052e6b739b73a8a.tar.bz2
* crx-dis.c (EXTRACT): Make macro work on 64-bit hosts.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/crx-dis.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 4550ce9..305d8e9 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,9 @@
2006-05-22 Nick Clifton <nickc@redhat.com>
+ * crx-dis.c (EXTRACT): Make macro work on 64-bit hosts.
+
+2006-05-22 Nick Clifton <nickc@redhat.com>
+
* po/nl.po: Updated translation.
2006-05-18 Alan Modra <amodra@bigpond.net.au>
diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c
index 8f14e8b..8d51c75 100644
--- a/opcodes/crx-dis.c
+++ b/opcodes/crx-dis.c
@@ -30,7 +30,7 @@
/* Extract 'n_bits' from 'a' starting from offset 'offs'. */
#define EXTRACT(a, offs, n_bits) \
- (n_bits == 32 ? (((a) >> (offs)) & ~0L) \
+ (n_bits == 32 ? (((a) >> (offs)) & 0xffffffffL) \
: (((a) >> (offs)) & ((1 << (n_bits)) -1)))
/* Set Bit Mask - a mask to set all bits starting from offset 'offs'. */