From: Orjan Friberg Date: Mon, 24 Sep 2001 08:04:10 +0000 (+0000) Subject: 2001-09-24 Orjan Friberg X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ab98e9e4f7a1f9b904a1b9dbcbb9c9323a33f8f;p=binutils-gdb.git 2001-09-24 Orjan Friberg * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1 from correct register. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f8c53744928..949e80f58c0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-09-24 Orjan Friberg + + * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1 + from correct register. + 2001-09-22 Mark Kettenis * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed. 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. */