This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]