This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] sh-sim, movy.w
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com, Elena Zannoni <ezannoni at redhat dot com>
- Date: Tue, 15 Jul 2003 15:09:48 -0400
- Subject: Re: [RFA] sh-sim, movy.w
- References: <3EFCAFC3.9060000@redhat.com>
Michael Snyder writes:
> A minor gotcha -- using the wrong regs as the args of movy.w.
>
Michael, I see that you are working on the sh1-sh4 simulator. Even
though I am maintaining the gdb sh port, I am not really excited about
maintaining the simulator part as well, since I have done very minimal
work with it.
I think we should declare the sh sim unmaintained, so I can get out of
your way. I am sure you have an instruction manual, and have
tested things, so I am willing to trust you :-)
elena
> 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;