Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: hjl.tools@gmail.com
Cc: gdb-patches@sourceware.org, dan@codesourcery.com
Subject: Re: PATCH: Extend gdb remote protocol for AVX
Date: Thu, 18 Sep 2008 17:51:00 -0000	[thread overview]
Message-ID: <200809181747.m8IHlonO029962@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <20080918172728.GA12703@lucon.org> (hongjiu.lu@intel.com)

> Date: Thu, 18 Sep 2008 10:27:28 -0700
> From: "H.J. Lu" <hongjiu.lu@intel.com>
> 
> Hi,
> 
> Intel AVX extends 128bit XMM registers to 256bit YMM registers. I
> am enclosing a propose to add YMM register support in gdb.  Since
> there is no AVX hardware, we can only implement the remote debug
> with AVX emulator.
> 
> This patch extends gdb remote protocol for AVX, based on Daniel's
> patch to auto-detect ia32 and x86-64 executables:
> 
> http://sources.redhat.com/ml/gdb-patches/2006-11/msg00056.html
> 
> I tested it by setting x86_sse_unit to avx in gdbserver/i387-fp.c.  OK
> to install?

Let's wait until there is actual hardware.

> 2008-09-18  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* amd64-linux-tdep.c (amd64_linux_init_abi): Call
> 	i386_register_g_packet_guesses.
> 	* i386-linux-tdep.c (i386_linux_init_abi): Likewise.
> 
> 	* amd64-tdep.c (amd64_register_names): Renamed to ...
> 	(amd64_sse_register_names): This.
> 	(amd64_avx_register_names): New.
> 	(AMD64_NUM_REGS): Updated.
> 	(amd64_register_name): Handle sse_unit.
> 	(amd64_init_abi): Call i386_gdbarch_sse_unit_init.
> 
> 	* amd64-tdep.h (AMD64_G_PACKET_SIZE_SSE): New.
> 	(AMD64_G_PACKET_SIZE_AVX): Likewise.
> 
> 	* i386-tdep.c: Include "remote.h" and "target-descriptions.h".
> 	(I386_PROPERTY_SSE): New.
> 	(I386_PROPERTY_AVX): Likewise.
> 	(i386_tdesc_sse): Likewise.
> 	(i386_tdesc_avx): Likewise.
> 	(i386_avx_register_names): Likewise.
> 	(i386_vec128_type): Likewise.
> 	(i386_vec256_type): Likewise.
> 	(i386_init_tdesc): Likewise.
> 	(i386_register_g_packet_guesses): Likewise.
> 	(i386_gdbarch_sse_unit_init): Likewise.
> 	(i386_register_names): Renamed to ...
> 	(i386_sse_register_names): This.
> 	(i386_num_register_names): Updated.
> 	(i386_register_name): Handle sse_unit.
> 	(i386_sse_type): Likewise.
> 	(i386_gdbarch_init): Call i386_gdbarch_sse_unit_init and
> 	i386_register_g_packet_guesses.
> 	(_initialize_i386_tdep): Call i386_init_tdesc.
> 
> 	* i386-tdep.h (x86_sse_unit): New.
> 	(I386_G_PACKET_SIZE_SSE): Likewise.
> 	(I386_G_PACKET_SIZE_AVX): Likewise.
> 	(i386_register_g_packet_guesses): Likewise.
> 	(i386_gdbarch_sse_unit_init): Likewise.
> 	(gdbarch_tdep): Add sse_unit.
> 	(I386_MAX_REGISTER_SIZE): Increase to 32.
> 
> 	* i387-tdep.c (i387_supply_fxsave): Assert sse_unit on SSE
> 	registers.
> 
> 	* defs.h (MAX_REGISTER_SIZE): Increase to 32.
> 
> 	* 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.


  reply	other threads:[~2008-09-18 17:51 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 [this message]
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
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=200809181747.m8IHlonO029962@brahms.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=dan@codesourcery.com \
    --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