From: Mark Kettenis <kettenis@chello.nl>
To: gdb@sources.redhat.com
Subject: [RFC] i386 SSE registers
Date: Fri, 12 Dec 2003 17:06:00 -0000 [thread overview]
Message-ID: <200312121706.hBCH6mIh011419@elgar.kettenis.dyndns.org> (raw)
Some time ago, I unconditionally enabled the SSE registers in the i386
target. On (sub-)targets that don't provide these registers[1] we now
have a slight discrepancy. A native GNU/Linux GDB will set these
registers to some non-zero dummy values. In all other cases the
registers are left alone, which means that they're initialized to zero
when GDB creates its register cache, and stay that way, unless the
user explicitly sets them to some other value. I'd like to get rid of
this discrepancy. However, since this will result in a user-visible
change, and since I'm not very familliar with SIMD programming, I'd
like to hear some opinions first. Here are the three options I'm
considering:
1. Set the SSE registers to the dummy values that the native GNU/Linux
GDB provides.
2. Leave the SSE registers alone like we do for the other cases right now.
3. Set the SSE registers explicitly to zero everytime we read the FPU
registers.
Personally I'm leaning towards option 2, since it allows us to detect
that the SSE registers aren't there by using regcache_valid_p().
Thoughts?
If nobody objects, I'll change the native GNU/Linux GDB around Christmas.
Cheers,
Mark
[1] Either because the underlying OS doesn't (fully) support them, the
remote protocol doesn't support them or the code is executing on a
CPU that doesn't support them.
next reply other threads:[~2003-12-12 17:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-12 17:06 Mark Kettenis [this message]
2003-12-13 18:49 ` Jim Blandy
2003-12-14 15:34 ` Mark Kettenis
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=200312121706.hBCH6mIh011419@elgar.kettenis.dyndns.org \
--to=kettenis@chello.nl \
--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