From: Jim Blandy <jimb@redhat.com>
To: Jason Thorpe <thorpej@wasabisystems.com>
Cc: Kevin Buettner <kevinb@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: RFA: handle missing fpregs
Date: Tue, 11 May 2004 04:55:00 -0000 [thread overview]
Message-ID: <vt2lljzv9z0.fsf@zenia.home> (raw)
In-Reply-To: <562BFFC4-A2D1-11D8-94E3-000A957650EC@wasabisystems.com>
Jason Thorpe <thorpej@wasabisystems.com> writes:
> On May 10, 2004, at 3:15 PM, Jim Blandy wrote:
>
> > Thanks for looking at this.
> >
> > How about changing the comment to this:
> >
> > /* FIXME: jimb/2004-05-05: Some PPC variants don't have floating
> > point registers. Traditionally, GDB's register set has still
> > listed the floating point registers for such machines, so this
> > code is harmless. However, the new E500 port actually omits the
> > floating point registers entirely from the register set --- they
> > don't even have register numbers assigned to them.
> >
> > It's not clear to me how best to update this code, so this assert
> > will alert the first person to encounter the NetBSD/E500
> > combination to the problem. */
>
> Ah, this clarifies the situation greatly. I didn't realize that we
> were in E500 land with this change.
That is the storied and mysterious terrain I tenant for the time
being. :)
> > How is the change to the code itself? The present code, if run when
> > the current architecture is the E500, will just inappropriate numbers
> > for the floating-point registers and hit the assert in
> > regcache_raw_supply, if you're lucky. So the change is an improvement
> > over the current state of affairs.
>
> If I am to understand correctly, the assert won't trip on e.g. 405 or
> 440... if that is true (i.e. does not break NetBSD FPU-less PowerPC
> support that currently works), then it's OK with me.
That's right. The patch changes ppc_floating_point_p to return true
unless fp0 or fpscr do not have register numbers, and it arranges for
that to occur only on the E500. So it shouldn't affect the behavior
of anything unless you're running on an E500.
I've (re-)committed this change.
prev parent reply other threads:[~2004-05-11 4:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-07 1:19 Jim Blandy
2004-05-07 11:20 ` Mark Kettenis
2004-05-07 20:54 ` Jim Blandy
2004-05-07 20:18 ` Kevin Buettner
2004-05-07 21:09 ` Jim Blandy
2004-05-07 22:56 ` Kevin Buettner
2004-05-10 17:08 ` Jim Blandy
2004-05-10 19:00 ` Jim Blandy
[not found] ` <D567851C-A2B8-11D8-94E3-000A957650EC@wasabisystems.com>
2004-05-10 22:16 ` Jim Blandy
2004-05-10 22:28 ` Jason Thorpe
2004-05-11 4:55 ` Jim Blandy [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=vt2lljzv9z0.fsf@zenia.home \
--to=jimb@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@redhat.com \
--cc=thorpej@wasabisystems.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