From: Andrew Cagney <ac131313@cygnus.com>
To: Richard.Earnshaw@arm.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE to register_size
Date: Tue, 07 May 2002 08:50:00 -0000 [thread overview]
Message-ID: <3CD7F7E5.8090207@cygnus.com> (raw)
In-Reply-To: <200205071020.LAA02712@cam-mail2.cambridge.arm.com>
> Hello,
>>
>> For most architectures. The relationship:
>>
>> REGISTER_VIRTUAL_SIZE(N)
>> == REGISTER_RAW_SIZE(N)
>> == TYPE_LENGTH(REGISTER_VIRTUAL_TYPE(N)
>>
>> (the exception is the @$(*&@(^$*&^!@ MIPS ...). Given this, the
>> attached patch changes the architecture vector so that it defaults both
>> to the register's type size.
>
>
> The ARM has REGISTER_VIRTUAL_SIZE(FPA-reg) == 8, but
> REGISTER_RAW_SIZE(FPA-reg) == 12.
>
> But that doesn't necessarily make the change wrong, provided we can
> override the default.
Hmm, remember that think-o bug I posted? ARM's register virtual type is:
if (regnum >= ARM_F0_REGNUM && regnum < ARM_F0_REGNUM + NUM_FREGS)
{
if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
return builtin_type_arm_ext_big;
else
return builtin_type_arm_ext_littlebyte_bigword;
}
(i.e. 12 bytes) yet virtual size for those registers returns:
#define FP_REGISTER_VIRTUAL_SIZE 8
Outch!
Having different raw and virtual sizes only does something(1) when
register_convertible() is defined - the Arm doesn't define this.
enjoy,
Andrew
(1) I'm not saying that what it does is useful though :-)
next prev parent reply other threads:[~2002-05-07 15:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-05 19:28 Andrew Cagney
2002-05-05 22:17 ` Eli Zaretskii
2002-05-06 13:38 ` Kevin Buettner
2002-05-06 17:01 ` [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE toregister_size Michael Snyder
2002-05-06 17:17 ` Andrew Cagney
2002-05-07 3:21 ` [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE to register_size Richard Earnshaw
2002-05-07 8:50 ` Andrew Cagney [this message]
2002-05-07 9:04 ` Richard Earnshaw
2002-05-07 10:33 ` Andrew Cagney
2002-05-08 6:55 ` Richard Earnshaw
2002-05-08 6:58 ` Andrew Cagney
2002-05-08 7:01 ` Richard Earnshaw
2002-05-11 19:03 ` 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=3CD7F7E5.8090207@cygnus.com \
--to=ac131313@cygnus.com \
--cc=Richard.Earnshaw@arm.com \
--cc=gdb-patches@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