aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-12-04 10:08:19 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-12-04 10:08:19 +0000
commitd126725049bcee3c863e3908d1ea51cc5e13afed (patch)
tree1fd74139a1f68d4baa2ce5c1ee501ab45db1881f
parent461448d8557871f8fc0f9b3118264656ea1b38a2 (diff)
downloadgdb-d126725049bcee3c863e3908d1ea51cc5e13afed.zip
gdb-d126725049bcee3c863e3908d1ea51cc5e13afed.tar.gz
gdb-d126725049bcee3c863e3908d1ea51cc5e13afed.tar.bz2
* d10v-dis.c (print_operand): Disregard OPERAND_SP in register
predefined value.
-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 c710d32..b3d7286 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,8 @@
2001-12-04 Alexandre Oliva <aoliva@redhat.com>
+ * d10v-dis.c (print_operand): Disregard OPERAND_SP in register
+ predefined value.
+
* d10v-opc.c (RSRC_NOSP): New macro.
(d10v_operands): Add it.
(d10v_opcodes): Use RSRC_NOSP in post-decrement "st" and "st2w".
diff --git a/opcodes/d10v-dis.c b/opcodes/d10v-dis.c
index d337a6b..4a89d8f 100644
--- a/opcodes/d10v-dis.c
+++ b/opcodes/d10v-dis.c
@@ -123,7 +123,7 @@ print_operand (oper, insn, op, memaddr, info)
num += num ? OPERAND_ACC1 : OPERAND_ACC0;
for (i = 0; i < d10v_reg_name_cnt (); i++)
{
- if (num == d10v_predefined_registers[i].value)
+ if (num == (d10v_predefined_registers[i].value & ~ OPERAND_SP))
{
if (d10v_predefined_registers[i].pname)
(*info->fprintf_func) (info->stream, "%s",