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.
This commit is contained in:
Orjan Friberg 2001-09-24 08:04:10 +00:00
parent 1d50f91e28
commit 7ab98e9e4f
2 changed files with 6 additions and 1 deletions

View 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.

View 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. */