This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] sh-sim, movy.w
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Elena Zannoni <ezannoni at redhat dot com>
- Date: Fri, 27 Jun 2003 13:57:39 -0700
- Subject: [RFA] sh-sim, movy.w
- Organization: Red Hat, Inc.
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;