From: Andrew Cagney <ac131313@ges.redhat.com>
To: Joern Rennecke <joern.rennecke@superh.com>
Cc: gdb-patches@sources.redhat.com, Elena Zannoni <ezannoni@redhat.com>
Subject: Re: sh64 simulator register numbers
Date: Thu, 18 Jul 2002 10:24:00 -0000 [thread overview]
Message-ID: <3D36F134.7020500@ges.redhat.com> (raw)
In-Reply-To: <3D35E3BB.5E12CC2@superh.com>
> Andrew Cagney wrote:
>
>> See the directory gdb/regformats/ and (more importantly) the mail
>> archives for information on the changes that are being made to GDB so
>> that it will eventually be able to handle remote register numbers.
>
>
> Hmm. Interesting. But the documentation seems to be mostly in the
> 'looking for volunteers' stage.
>
> Can you give some salient time frames and/or keywords to narrow down the
> search space a bit?
Some words would include regcache remote.c (especially all recent patches).
>> > ! /* SHmedia */
>> > ! SIM_SH64_R0_REGNUM = 128,
>
>
> So you want this assignment to 128 be dropped, so that SIM_SH64_R0_REGNUM
> just gets the next free number?
Yes, a pure enum. As mentioned before, the d10v et.al. all do this.
> The rest is all relative to SIM_SH64_R0_REGNUM.
> There are 64 general purpose registers, starting with R0. The stack
> pointer is R15.
>
>> > ! SIM_SH64_SP_REGNUM = SIM_SH64_R0_REGNUM+15,
If a register has an alternative name, define that in a separate enum vis:
enum {
SIM_SH64_SP_REGNUM = SIM_SH64_R15_REGNUM
};
> After the general purpose registers, we want the program counter.
> Is this assignment OK with you?
>
>> > ! SIM_SH64_PC_REGNUM = SIM_SH64_R0_REGNUM+64,
No. See above.
> Or do you want r63 to be assigned a number relative to r0, and then
> get automatically the next number for pc?
>
> Or should we enumerate all 64 of the general purpose registers?
Yes.
> Similar considerations apply to the 64 control registers,
> 8 target registers, how to assign a number to fpscr, and
> the 64 floating point registers.
Andrew
prev parent reply other threads:[~2002-07-18 16:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-17 12:50 Joern Rennecke
2002-07-17 14:17 ` Andrew Cagney
2002-07-17 15:25 ` Joern Rennecke
2002-07-18 10:24 ` Andrew Cagney [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D36F134.7020500@ges.redhat.com \
--to=ac131313@ges.redhat.com \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=joern.rennecke@superh.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox