From: Andrew Cagney <ac131313@cygnus.com>
To: Richard.Earnshaw@arm.com
Cc: gdb@sources.redhat.com, Elena Zannoni <ezannoni@redhat.com>
Subject: Re: pseudo registers in the regcache
Date: Fri, 17 May 2002 09:22:00 -0000 [thread overview]
Message-ID: <3CE52E4F.70009@cygnus.com> (raw)
In-Reply-To: <200205171353.OAA00746@cam-mail2.cambridge.arm.com>
> Grepping through the sources for the targets that were using regcache
> entries for pseudos it turns out that in current CVS only two targets are
> using pseudos at all: sh and mc68hc11.
>
>
> The sh code is known not to put its pseudos in the regcache, which only
> leaves the mc68hc11.
Elena? Is the sh5 clear of all edge conditions?
The mc68hc11 pre-dates register_{read,write}.
> Looking at that code it appears that it uses the pseudos for registers
> that are really part of the memory map, so it seems like we are really
> overloading the "pseudo" name for two different things.
The origins of the register_{read,write} stem from a target David Taylor
encountered that needed to represent memory locations as registers!
Code that was caching memory values in the register cache had [obvious]
coherency problems.
> How about renaming the 68k stuff as being MEMORY_REGS and reserving the
> PSEUDO concept for what we really seem to want -- a view of a (or a
> combination of) physical (or memory) register(s)?
Or update mc68hc11 :-)
> That would, I think allow us to say that pseudos are never in the regcache
> and it should simplify many bits of code significantly.
> Oh, and I'd make NUM_REGS (the define) be NUM_PHYS_REGS + NUM_MEMORY_REGS
> so that gdb-core sees these as a single resource (ie the separation is
> below gdb-core).
No need.
Andrew
PS: Or NUM_COOKED_REGS being NUM_RAW_REGS + NUM_PSEUDO_REGS? Something
like that is on a few hit lists. I've been resisting the temptation to
do this since it was noise compared to eliminating registers[].
next prev parent reply other threads:[~2002-05-17 16:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-17 6:53 Richard Earnshaw
2002-05-17 9:22 ` Andrew Cagney [this message]
2002-05-17 9:31 ` Richard Earnshaw
2002-05-17 9:47 ` Andrew Cagney
2002-05-18 3:49 ` Richard Earnshaw
2002-05-18 11:08 ` Andrew Cagney
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=3CE52E4F.70009@cygnus.com \
--to=ac131313@cygnus.com \
--cc=Richard.Earnshaw@arm.com \
--cc=ezannoni@redhat.com \
--cc=gdb@sources.redhat.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