diff options
author | Orjan Friberg <orjanf@axis.com> | 2001-09-24 08:16:07 +0000 |
---|---|---|
committer | Orjan Friberg <orjanf@axis.com> | 2001-09-24 08:16:07 +0000 |
commit | 48cc187a85260ea12e48cc25ce127beda8a4a98a (patch) | |
tree | d8cddfbc33c1ed96c27e8d8c715d68dcc757fac1 | |
parent | 780cad8d4e673c6192020b3c3ca025edd52c7e3b (diff) | |
download | gdb-48cc187a85260ea12e48cc25ce127beda8a4a98a.tar.gz |
2001-09-24 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
from correct register.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cris-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9b9412772e2..414d64ca707 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-09-24 Orjan Friberg <orjanf@axis.com> + + * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1 + from correct register. + 2001-09-18 Keith Seitz <keiths@redhat.com> * printcmd.c (print_insn): Use the given stream for diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 5ac2a3be20e..956ae602853 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -3070,7 +3070,7 @@ reg_mode_add_sub_cmp_and_or_move_op (unsigned short inst, return; } /* The instruction has the PC as its target register. */ - operand1 = inst_env->reg[operand1]; + operand1 = inst_env->reg[cris_get_operand1 (inst)]; operand2 = inst_env->reg[REG_PC]; /* Check if it's a extend, signed or zero instruction. */ |