This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[sim/committed] Fix a typo in sim/avr/interp.c
- From: Tristan Gingold <gingold at adacore dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Mon, 9 Nov 2009 14:50:08 +0100
- Subject: [sim/committed] Fix a typo in sim/avr/interp.c
Hi,
this patch fixes a stupid typo that made ret on avr6 architecture
wrong in some cases.
Tristan.
sim/
2009-11-09 Tristan Gingold <gingold@adacore.com>
* avr/interp.c (sim_resume): Fix typo for OP_ret.
*** interp.c 23 Oct 2009 09:14:32 -0000 1.2
--- interp.c 9 Nov 2009 13:48:36 -0000
***************
*** 985,991 ****
unsigned int sp = read_word (REG_SP);
if (avr_pc22)
{
! pc = sram[++sp] = pc << 16;
cycles++;
}
else
--- 985,991 ----
unsigned int sp = read_word (REG_SP);
if (avr_pc22)
{
! pc = sram[++sp] << 16;
cycles++;
}
else