Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: "Mark Kettenis" <mark.kettenis@xs4all.nl>
Cc: drow@false.org, gdb-patches@sourceware.org
Subject: Re: PATCH: Extend gdb remote protocol for AVX
Date: Wed, 29 Oct 2008 07:41:00 -0000	[thread overview]
Message-ID: <6dc9ffc80810281915g318fa5cfm4646f1edb910d55e@mail.gmail.com> (raw)
In-Reply-To: <200810281626.m9SGQfbl011775@brahms.sibelius.xs4all.nl>

[-- Attachment #1: Type: text/plain, Size: 975 bytes --]

On Tue, Oct 28, 2008 at 9:26 AM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
>> Date: Tue, 28 Oct 2008 10:10:21 -0400
>> From: Daniel Jacobowitz <drow@false.org>
>>
>> On Mon, Oct 27, 2008 at 10:58:36PM -0700, H.J. Lu wrote:
>> > Are there any objections to my AVX patch?
>>
>> There were objections - just read the thread you are replying to.  If
>> you have not changed the patch, then there are still objections.
>
> I also think it would be good to seperate out the changes to GDB's
> internal register file from the extensions you want to make to the

Here is the patch to extend gdb remote protocol for AVX.

> remote protocol.  And I'd really like to see how an implementation of
> i387_supply_xsave() and i387_collect_xsave() would look in that
> context.

It is hard to implement them without an OS running on AVX
H/W. At this moment, we only need to define a remote protocol
for AVX.  We can work on native AVX support when H/W is
available.

Thanks.


-- 
H.J.

[-- Attachment #2: gdb-avx-remote-1.patch --]
[-- Type: application/octet-stream, Size: 3575 bytes --]

2008-10-28  H.J. Lu  <hongjiu.lu@intel.com>

	* regformats/reg-i386-avx.dat: New.
	* regformats/reg-i386-avx-linux.dat: Likewise.
	* regformats/reg-x86-64-avx.dat: Likewise.
	* regformats/reg-x86-64-avx-linux.dat: Likewise.

	* regformats/reg-x86-64.dat: Add xmlarch.

Index: regformats/reg-x86-64-avx-linux.dat
===================================================================
--- regformats/reg-x86-64-avx-linux.dat	(.../fsf/trunk/gdb)	(revision 0)
+++ regformats/reg-x86-64-avx-linux.dat	(.../branches/avx/gdb)	(revision 3974)
@@ -0,0 +1,60 @@
+name:x86_64_avx_linux
+expedite:rbp,rsp,rip
+64:rax
+64:rbx
+64:rcx
+64:rdx
+64:rsi
+64:rdi
+64:rbp
+64:rsp
+64:r8
+64:r9
+64:r10
+64:r11
+64:r12
+64:r13
+64:r14
+64:r15
+64:rip
+32:eflags
+32:cs
+32:ss
+32:ds
+32:es
+32:fs
+32:gs
+80:st0
+80:st1
+80:st2
+80:st3
+80:st4
+80:st5
+80:st6
+80:st7
+32:fctrl
+32:fstat
+32:ftag
+32:fiseg
+32:fioff
+32:foseg
+32:fooff
+32:fop
+256:ymm0
+256:ymm1
+256:ymm2
+256:ymm3
+256:ymm4
+256:ymm5
+256:ymm6
+256:ymm7
+256:ymm8
+256:ymm9
+256:ymm10
+256:ymm11
+256:ymm12
+256:ymm13
+256:ymm14
+256:ymm15
+32:mxcsr
+64:orig_rax
Index: regformats/reg-x86-64-avx.dat
===================================================================
--- regformats/reg-x86-64-avx.dat	(.../fsf/trunk/gdb)	(revision 0)
+++ regformats/reg-x86-64-avx.dat	(.../branches/avx/gdb)	(revision 3974)
@@ -0,0 +1,59 @@
+name:x86_64_avx
+expedite:rbp,rsp,rip
+64:rax
+64:rbx
+64:rcx
+64:rdx
+64:rsi
+64:rdi
+64:rbp
+64:rsp
+64:r8
+64:r9
+64:r10
+64:r11
+64:r12
+64:r13
+64:r14
+64:r15
+64:rip
+32:eflags
+32:cs
+32:ss
+32:ds
+32:es
+32:fs
+32:gs
+80:st0
+80:st1
+80:st2
+80:st3
+80:st4
+80:st5
+80:st6
+80:st7
+32:fctrl
+32:fstat
+32:ftag
+32:fiseg
+32:fioff
+32:foseg
+32:fooff
+32:fop
+256:ymm0
+256:ymm1
+256:ymm2
+256:ymm3
+256:ymm4
+256:ymm5
+256:ymm6
+256:ymm7
+256:ymm8
+256:ymm9
+256:ymm10
+256:ymm11
+256:ymm12
+256:ymm13
+256:ymm14
+256:ymm15
+32:mxcsr
Index: regformats/reg-x86-64.dat
===================================================================
--- regformats/reg-x86-64.dat	(.../fsf/trunk/gdb)	(revision 3974)
+++ regformats/reg-x86-64.dat	(.../branches/avx/gdb)	(revision 3974)
@@ -1,4 +1,5 @@
 name:x86_64
+xmlarch:i386:x86-64
 expedite:rbp,rsp,rip
 64:rax
 64:rbx
Index: regformats/reg-i386-avx-linux.dat
===================================================================
--- regformats/reg-i386-avx-linux.dat	(.../fsf/trunk/gdb)	(revision 0)
+++ regformats/reg-i386-avx-linux.dat	(.../branches/avx/gdb)	(revision 3974)
@@ -0,0 +1,44 @@
+name:i386_avx_linux
+expedite:ebp,esp,eip
+32:eax
+32:ecx
+32:edx
+32:ebx
+32:esp
+32:ebp
+32:esi
+32:edi
+32:eip
+32:eflags
+32:cs
+32:ss
+32:ds
+32:es
+32:fs
+32:gs
+80:st0
+80:st1
+80:st2
+80:st3
+80:st4
+80:st5
+80:st6
+80:st7
+32:fctrl
+32:fstat
+32:ftag
+32:fiseg
+32:fioff
+32:foseg
+32:fooff
+32:fop
+256:ymm0
+256:ymm1
+256:ymm2
+256:ymm3
+256:ymm4
+256:ymm5
+256:ymm6
+256:ymm7
+32:mxcsr
+32:orig_eax
Index: regformats/reg-i386-avx.dat
===================================================================
--- regformats/reg-i386-avx.dat	(.../fsf/trunk/gdb)	(revision 0)
+++ regformats/reg-i386-avx.dat	(.../branches/avx/gdb)	(revision 3974)
@@ -0,0 +1,43 @@
+name:i386_avx
+expedite:ebp,esp,eip
+32:eax
+32:ecx
+32:edx
+32:ebx
+32:esp
+32:ebp
+32:esi
+32:edi
+32:eip
+32:eflags
+32:cs
+32:ss
+32:ds
+32:es
+32:fs
+32:gs
+80:st0
+80:st1
+80:st2
+80:st3
+80:st4
+80:st5
+80:st6
+80:st7
+32:fctrl
+32:fstat
+32:ftag
+32:fiseg
+32:fioff
+32:foseg
+32:fooff
+32:fop
+256:ymm0
+256:ymm1
+256:ymm2
+256:ymm3
+256:ymm4
+256:ymm5
+256:ymm6
+256:ymm7
+32:mxcsr

  reply	other threads:[~2008-10-29  2:16 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
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 [this message]
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=6dc9ffc80810281915g318fa5cfm4646f1edb910d55e@mail.gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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