diff options
author | Orjan Friberg <orjanf@axis.com> | 2001-09-24 08:04:10 +0000 |
---|---|---|
committer | Orjan Friberg <orjanf@axis.com> | 2001-09-24 08:04:10 +0000 |
commit | 555e77866119a37b58db92689e3f4f056efe40d4 (patch) | |
tree | cd64c78e30d629b7f6c250a47daf146bb856574c /gdb/cris-tdep.c | |
parent | c9aa2007594d03e25bb3f0412120b58f4e2c665c (diff) | |
download | gdb-555e77866119a37b58db92689e3f4f056efe40d4.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.
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r-- | gdb/cris-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 50d81b4c7fd..5b03a911991 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. */ |