From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: hjl.tools@gmail.com
Cc: hjl.tools@gmail.com, gdb-patches@sourceware.org
Subject: Re: PATCH: Extend gdb remote protocol for AVX
Date: Mon, 06 Oct 2008 21:35:00 -0000 [thread overview]
Message-ID: <200810062135.m96LZI0H016325@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <6dc9ffc80810050737r56b0d044vcf8e8f1368d2d03d@mail.gmail.com> (hjl.tools@gmail.com)
> Date: Sun, 5 Oct 2008 07:37:13 -0700
> From: "H.J. Lu" <hjl.tools@gmail.com>
>
> On Sat, Oct 4, 2008 at 3:13 PM, Daniel Jacobowitz <dan@codesourcery.com> wrote:
> >> I have no objection to the changes you proposed for the remote
> >> protocol. But your diff also touches the core register stuff, and
> >> that needs a bit more thought to make sure we don't surprise our
> >> users. At that point, it may be easier to use the same model for the
> >> remote protocol, where you transfer the top 128 bits of the %ymm
> >> registers in addition to the %xmm registers. Adter all this is how
> >> the hardware does it too (xsave is just an extension of fxsave).
> >
> > One way would be to transfer the xmm registers and then the remaining
> > bits as unnamed registers; another, probably easier way would be to
> > use an architecture specification or an actual register description to
> > transfer just the ymm registers and let GDB know about that fact, so
> > it can synthesize the xmm registers.
> >
> > (I don't remember the original patch, that may be what you're talking
> > about already.)
> >
>
> My proposal transfers the whole 256bit registers. We can display
> xmm registers as the lower 128bit ymm registers if we can
> display al/ax/eax.
That certainly is a possibility, but if it is the right choice depends
on quite a bit more things that just ease of implementation of the
remote protocol. An important thing to check is what register numbers
compilers (and GCC in particular) use for these registers. Are there
compilers that already implement support for these new AVX
instructions?
We really should make sure the DWARF register number mapping in the
AMD64 psABI gets updated for these new registers. Given the way the
current mapping us defined for %stN and %mmN, it probably makes sense
to give %ymmN their own numbers.
next prev parent reply other threads:[~2008-10-06 21:35 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 17:28 H.J. Lu
2008-09-18 17:51 ` Mark Kettenis
2008-09-18 18:20 ` Mark Kettenis
2008-09-18 18:31 ` H.J. Lu
2008-09-18 18:34 ` Daniel Jacobowitz
2008-09-18 19:03 ` H.J. Lu
2008-09-18 19:39 ` Daniel Jacobowitz
2008-09-18 20:13 ` H.J. Lu
2008-09-18 20:24 ` Daniel Jacobowitz
2008-10-02 10:29 ` Mark Kettenis
2008-10-02 14:16 ` H.J. Lu
2008-10-04 20:52 ` Mark Kettenis
2008-10-04 22:14 ` Daniel Jacobowitz
2008-10-05 14:37 ` H.J. Lu
2008-10-06 21:35 ` Mark Kettenis [this message]
2008-10-07 19:22 ` H.J. Lu
2008-10-12 13:39 ` Mark Kettenis
2008-10-12 22:18 ` H.J. Lu
2008-10-28 14:11 ` H.J. Lu
2008-10-28 14:18 ` Daniel Jacobowitz
2008-10-28 17:29 ` Mark Kettenis
2008-10-29 7:41 ` H.J. Lu
2008-10-29 16:45 ` Mark Kettenis
2008-10-29 2:00 ` H.J. Lu
2008-10-29 2:16 ` Daniel Jacobowitz
2008-10-04 22:22 ` H.J. Lu
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=200810062135.m96LZI0H016325@brahms.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb-patches@sourceware.org \
--cc=hjl.tools@gmail.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