From: Richard Earnshaw <rearnsha@arm.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: Richard.Earnshaw@arm.com, gdb@sources.redhat.com
Subject: Re: ARM and virtual/raw registers
Date: Sun, 12 May 2002 08:25:00 -0000 [thread overview]
Message-ID: <200205121525.QAA02703@cam-mail2.cambridge.arm.com> (raw)
In-Reply-To: Your message of "Sun, 12 May 2002 11:07:18 EDT." <3CDE8526.5080302@cygnus.com>
> > However, in this situation,
> > pseudo_rengo("r0") != regcache_regno("r0"), yet we effectively have
> >
> > REGSITER_RAW_SIZE (pseudo_regno ("r0"))
> > and
> > REGISTER_RAW_SIZE (regcache_regno ("r0"))
>
> Sorry, I still don't understand.
In my view of things, the domain of the result returned by pseudo_regno()
is
0..Num_pseudos,
and the domain of regcache_regno() is
0..NUM_REGS
But we have cases where the two functions return a different number for
the same register; more precisely, we might encounter the situation where
pseudo_regno ("int_reg0") == regcache_regno ("float_reg5")
and clearly in this case one of these will give the wrong answer if used
to call REGISTER_RAW_SIZE().
> Sorry, I still don't understand. Given pseudo-registers, the name of
> the function ``register_raw_size'' is definitly overloaded. However,
> per the patch very recently committed, the norm should now be:
> register_raw_size() == register_virtual_size() == TYPE_LENGTH
> (register_virtual_type()) (which makes them all badly named :-)
This has nothing to do with the raw and virtual sizes being different, or
the raw and virtual types being different.
> Even more ruthless. Try a register layout of:
> --
> raw normal r0..r15
> raw someothers
> raw floats
> raw bank r0..r15
> raw still more
> --
> pseudo r0..r15
> mapped onto either normal or banked
> pseudo floats
> mapped onto floats
> and so on, for instance, explict register names to identify normal and
> banked r0.
> --
> which completly separates the raw and pseudo registers. The function
> register_name() becomes:
>
> if regnum < NUM_REGO
> return "";
> else
> return yourtable[regnum - NUM_REGS];
Hmm, not quite, I'm trying to bury the regcache even deeper than that...
It simply does not exist to most of core-gdb, except by calling through
arm_register_read(), which is the only function that knows how to map a
regno onto its regcache entry.
R.
R.
next prev parent reply other threads:[~2002-05-12 15:25 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-09 7:31 Richard Earnshaw
2002-05-09 9:45 ` Andrew Cagney
2002-05-09 10:01 ` Richard Earnshaw
2002-05-09 11:52 ` Andrew Cagney
2002-05-10 3:45 ` Richard Earnshaw
2002-05-10 7:48 ` Andrew Cagney
2002-05-10 12:07 ` Andrew Cagney
2002-05-11 7:05 ` Richard Earnshaw
2002-05-11 14:52 ` Andrew Cagney
2002-05-12 7:20 ` Richard Earnshaw
2002-05-12 8:25 ` Andrew Cagney
2002-05-12 8:30 ` Richard Earnshaw
2002-05-12 8:51 ` Andrew Cagney
2002-05-10 9:29 ` Richard Earnshaw
2002-05-10 11:42 ` Andrew Cagney
2002-05-11 6:16 ` Richard Earnshaw
2002-05-11 11:41 ` Richard Earnshaw
2002-05-11 13:36 ` Andrew Cagney
2002-05-12 7:11 ` Richard Earnshaw
2002-05-12 7:40 ` Richard Earnshaw
2002-05-12 9:03 ` Andrew Cagney
2002-05-12 11:31 ` Andrew Cagney
2002-05-12 8:07 ` Andrew Cagney
2002-05-12 8:25 ` Richard Earnshaw [this message]
2002-05-12 8:41 ` Andrew Cagney
2002-05-13 5:35 ` Richard Earnshaw
2002-05-13 6:13 ` Andrew Cagney
2002-05-13 6:18 ` Richard Earnshaw
2002-05-09 10:08 ` Andrew Cagney
2002-05-09 10:36 ` Richard Earnshaw
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=200205121525.QAA02703@cam-mail2.cambridge.arm.com \
--to=rearnsha@arm.com \
--cc=Richard.Earnshaw@arm.com \
--cc=ac131313@cygnus.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