aboutsummaryrefslogtreecommitdiff
path: root/opcodes/d10v-dis.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-05-07 13:26:28 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-05-07 13:26:28 +0000
commit920a34a7b250d714239941480610cc39649968f3 (patch)
tree6f99669d5df31a6876c4230141a419753c7e2ad4 /opcodes/d10v-dis.c
parent7f4d39589c642cb9d6a52801d1cf66a0606092de (diff)
downloadgdb-920a34a7b250d714239941480610cc39649968f3.zip
gdb-920a34a7b250d714239941480610cc39649968f3.tar.gz
gdb-920a34a7b250d714239941480610cc39649968f3.tar.bz2
2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
* d10v-dis.c (dis_2_short): Support 64bit host.
Diffstat (limited to 'opcodes/d10v-dis.c')
-rw-r--r--opcodes/d10v-dis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/d10v-dis.c b/opcodes/d10v-dis.c
index e093042..b5f232a 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++)