[sim/committed] Fix a typo in sim/avr/interp.c

Tristan Gingold gingold@adacore.com
Mon Nov 9 13:50:00 GMT 2009


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



More information about the Gdb-patches mailing list