2001-09-24 Orjan Friberg <orjanf@axis.com>
authorOrjan Friberg <orjanf@axis.com>
Mon, 24 Sep 2001 08:04:10 +0000 (08:04 +0000)
committerOrjan Friberg <orjanf@axis.com>
Mon, 24 Sep 2001 08:04:10 +0000 (08:04 +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 f8c537449280341cb9f64714936e64dee5f184dc..949e80f58c03c3d863a619d4b0263bf863d9426d 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-22  Mark Kettenis  <kettenis@gnu.org>
 
        * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
index 50d81b4c7fd7130fd4d2d7db076aa99cdfa0b069..5b03a9119910fa50af82321a88382ea68e3b8ade 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.  */