summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2005-05-07 13:26:28 +0000
committerH.J. Lu <hjl@lucon.org>2005-05-07 13:26:28 +0000
commitdcc02192bb3242e84d94a6f47adf9b64b6180538 (patch)
treef77055cd25132e4c7c79ecd70016c859cc67c99b /opcodes
parent74f9e6b450d21c50bfa50c752f93ebcd131834c3 (diff)
downloadgdb-dcc02192bb3242e84d94a6f47adf9b64b6180538.tar.gz
2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
* d10v-dis.c (dis_2_short): Support 64bit host.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/d10v-dis.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 9124e8a9487..30956eb81e2 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * d10v-dis.c (dis_2_short): Support 64bit host.
+
2005-05-07 Nick Clifton <nickc@redhat.com>
* po/nl.po: Updated translation.
diff --git a/opcodes/d10v-dis.c b/opcodes/d10v-dis.c
index e0930427ef1..b5f232ad39c 100644
--- a/opcodes/d10v-dis.c
+++ b/opcodes/d10v-dis.c
@@ -253,7 +253,8 @@ dis_2_short (insn, memaddr, info, order)
while (op->name)
{
if ((op->format & SHORT_OPCODE)
- && ((op->mask & ins[j]) == (unsigned long) op->opcode))
+ && ((((unsigned int) op->mask) & ins[j])
+ == (unsigned int) op->opcode))
{
(*info->fprintf_func) (info->stream, "%s\t", op->name);
for (i = 0; op->operands[i]; i++)