This is the mail archive of the gdb-patches@sources.redhat.com 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]

[RFA] sh-sim, movy.w


A minor gotcha -- using the wrong regs as the args of movy.w.

2003-06-27  Michael Snyder  <msnyder@redhat.com>

	* gencode.c (gensim_caselist): The movy instructions use
	registers R6 and R7 (not R4 and R5 like the movx insns).

Index: gencode.c
===================================================================
RCS file: /cvs/src/src/sim/sh/gencode.c,v
retrieving revision 1.5
diff -p -r1.5 gencode.c
*** gencode.c	6 Feb 2003 10:42:33 -0000	1.5
--- gencode.c	27 Jun 2003 20:54:48 -0000
*************** gensim_caselist (p)
*** 2159,2165 ****
  	      s += 2;
  	      break;
  	    case 'y':
! 	      printf ("      int n = ((iword >> 8) & 1) + 4;\n");
  	      needn = 1;
  	      s += 2;
  	      break;
--- 2159,2165 ----
  	      s += 2;
  	      break;
  	    case 'y':
! 	      printf ("      int n = ((iword >> 8) & 1) + 6;\n");
  	      needn = 1;
  	      s += 2;
  	      break;

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