aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-12-04 12:30:55 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-12-04 12:30:55 +0000
commit373efcb30978bae9076679250c37ff070978e813 (patch)
tree6297d2b90d83df35bf1eb248ef3aedb8c5a3d8bd /opcodes
parent8350bcd967852fa3d68b8d935331fe2b3e81bbfe (diff)
downloadgdb-373efcb30978bae9076679250c37ff070978e813.zip
gdb-373efcb30978bae9076679250c37ff070978e813.tar.gz
gdb-373efcb30978bae9076679250c37ff070978e813.tar.bz2
* d10v-dis.c (print_operand): Apply REGISTER_MASK to `num' of
unmatched register.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog3
-rw-r--r--opcodes/d10v-dis.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index b3d7286..d6cc231 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,8 @@
2001-12-04 Alexandre Oliva <aoliva@redhat.com>
+ * d10v-dis.c (print_operand): Apply REGISTER_MASK to `num' of
+ unmatched register.
+
* d10v-dis.c (print_operand): Disregard OPERAND_SP in register
predefined value.
diff --git a/opcodes/d10v-dis.c b/opcodes/d10v-dis.c
index 4a89d8f..433fd51 100644
--- a/opcodes/d10v-dis.c
+++ b/opcodes/d10v-dis.c
@@ -145,7 +145,7 @@ print_operand (oper, insn, op, memaddr, info)
(*info->fprintf_func) (info->stream, "cr");
else if (oper->flags & OPERAND_REG)
(*info->fprintf_func) (info->stream, "r");
- (*info->fprintf_func) (info->stream, "%d", num);
+ (*info->fprintf_func) (info->stream, "%d", num & REGISTER_MASK);
}
}
else