]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2001-09-24 Orjan Friberg <orjanf@axis.com>
authorOrjan Friberg <orjanf@axis.com>
Mon, 24 Sep 2001 08:16:07 +0000 (08:16 +0000)
committerOrjan Friberg <orjanf@axis.com>
Mon, 24 Sep 2001 08:16:07 +0000 (08:16 +0000)
* cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
from correct register.

gdb/ChangeLog
gdb/cris-tdep.c

index 9b9412772e232c478287011a17f7789590ed8092..414d64ca7077040c1823c631ac06d397c2900e71 100644 (file)
@@ -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
index 5ac2a3be20e8bcf623b2be6443052a415c18e496..956ae6028535f7abb5ac6295f9eadbd265098d89 100644 (file)
@@ -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.  */