Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@cygnus.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] W.I.P. AltiVec ppc registers support.
Date: Sun, 02 Dec 2001 10:28:00 -0000	[thread overview]
Message-ID: <15370.29736.747589.390705@krustylu.cygnus.com> (raw)
In-Reply-To: <20011129012730.A19781@nevyn.them.org>

Daniel Jacobowitz writes:
 > On Wed, Nov 28, 2001 at 09:15:35PM -0500, Elena Zannoni wrote:
 > > 
 > > AltiVec registers are 32 128-bit wide registers found on the G4
 > > powerpc processor family. This patch adds some initial support for
 > > such registers to gdb on a linux ppc platform.
 > > 
 > > The Altivec registers are not displayed in a normal 'info reg' command
 > > output. They are shown (like fp regs) if one says 'info all' instead.
 > > Furthermore I added a specific 'info power altivec' command to display
 > > just the Altivec registers. (I am not sure that the word 'power' is
 > > the best choice, maybe simply 'ppc' or 'powerpc' is better).  This way
 > > the command as just a specific powerpc info command, w/o it being a
 > > generic info command avaliable on every platform.
 > > 
 > > If there is no kernel support for ptrace to handle the AltiVec
 > > registers, they will display as 0's.
 > 
 > Wait, I knew I was forgetting something important.
 > 
 > There is no kernel support for this feature in any public PowerPC
 > kernel tree, and to my knowledge there has been no suggested patch for
 > it on any of the public LinuxPPC forums.  As such, the interface to it
 > is still up in the air.  I've discussed this with other kernel folk at
 > various times, and the general consensus is that, instead of adding
 > them to the user area and using PEEKUSR, someone should simply
 > implement PTRACE_GETFPXREGS (perhaps just PTRACE_GETXREGS, as the FP
 > does not really apply, but consistency...).  We almost never want to
 > fetch just one altivec register, excepting maybe VRSAVE, and GETFPXREGS
 > takes negligibly more time than a single PEEKUSR call.


Hold on, I looked at the altivec.org and at the linuxppc.org mailing
lists.

There is actually a patch posted at the beginning of September to
which you replied at some stage.  And this patch is similar to the one
I have used for implementing GDB altivec support.

The version of the patch I have was provided by Motorola, and they are
about to submit it publicly. The patch is virtually identical to the
one posted on linuxppc.org except for the definition of PT_VR0 which
in the latter is (errouneously) made to be aligned on 128-bits.  So
for the patch I have PT_VR0 is simply PT_FPSCR + 1, not 128.

My gdb implementation works also for machines w/o altivec ptrace
support, because in that case the ptrace call just errors out and that
condition is detected (I am talking about my original patch, w/o the
changes that Kevin suggested). This was one objection to the kernel
patch that I've seen raised on the linuxppc list.

The thread subject is "AltiVec aware ptrace for Linux"

http://lists.linuxppc.org/linuxppc-dev/200109/msg00029.html

and the original postings are on 

http://www.altivec.org/emailgroup 

follow the email archive link at the bottom of the page (this archive
is a total pain to look through).


Elena


 > 
 > -- 
 > Daniel Jacobowitz                           Carnegie Mellon University
 > MontaVista Software                         Debian GNU/Linux Developer


  parent reply	other threads:[~2001-12-02 18:28 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-28 18:09 Elena Zannoni
2001-11-18 13:27 ` Elena Zannoni
2001-11-18 14:11 ` Daniel Jacobowitz
2001-11-19 12:59   ` Andrew Cagney
2001-11-29  9:04     ` Andrew Cagney
2001-11-29 13:10     ` Daniel Jacobowitz
2001-11-19 16:00       ` Daniel Jacobowitz
2001-11-29 13:34       ` Kevin Buettner
2001-11-19 16:42         ` Kevin Buettner
2001-11-29 14:11         ` Kevin Buettner
2001-11-19 22:22           ` Kevin Buettner
2001-11-29 14:27           ` Elena Zannoni
2001-11-19 23:55             ` Elena Zannoni
2001-11-28 22:27   ` Daniel Jacobowitz
2001-12-02 10:28   ` Elena Zannoni [this message]
2001-12-02 12:19     ` Andrew Cagney
2001-12-02 14:59     ` Daniel Jacobowitz
2001-12-02 22:25       ` Andrew Cagney
2001-11-28 18:33 ` Daniel Jacobowitz
2001-11-18 13:40   ` Daniel Jacobowitz
2001-11-29 10:40 ` Kevin Buettner
2001-11-19 15:15   ` Kevin Buettner
2001-11-19 18:51   ` Elena Zannoni
2001-11-29 13:53     ` Elena Zannoni
2001-11-29 14:21     ` Kevin Buettner
2001-11-19 22:53       ` Kevin Buettner
2001-11-29 14:42       ` Elena Zannoni
2001-11-20  8:37         ` Elena Zannoni
2001-11-29 15:03         ` Andrew Cagney
2001-11-20  8:54           ` Andrew Cagney
2001-11-29 16:27           ` Kevin Buettner
2001-11-20 16:00             ` Kevin Buettner
2001-11-20 16:14             ` Andrew Cagney
2001-11-21  3:33               ` Daniel Jacobowitz
2001-11-29 17:41                 ` Daniel Jacobowitz
2001-11-29 16:43               ` Andrew Cagney
2001-11-29 16:36             ` Elena Zannoni
2001-11-20 16:10               ` Elena Zannoni
2001-11-29 17:40               ` Daniel Jacobowitz
2001-11-20 18:00                 ` Daniel Jacobowitz
2001-11-29 14:47       ` Daniel Jacobowitz
2001-11-20  8:37         ` Daniel Jacobowitz
2001-11-20  9:07         ` Kevin Buettner
2001-11-20  9:08           ` Andrew Cagney
2001-11-29 15:33             ` Andrew Cagney
2001-11-29 15:15           ` Kevin Buettner
2001-11-29 15:38           ` Daniel Jacobowitz
2001-11-20  9:13             ` Daniel Jacobowitz
2001-11-20 10:09             ` Kevin Buettner
2001-11-29 15:47               ` Kevin Buettner
2001-11-29 15:58               ` Andrew Cagney
2001-11-20 10:59                 ` Andrew Cagney
2001-11-29 15:59               ` Daniel Jacobowitz
2001-11-20 11:07                 ` Daniel Jacobowitz
2001-11-29 16:17                 ` Andrew Cagney
2001-11-20 11:17                   ` Andrew Cagney
2001-11-20 17:52                   ` Daniel Jacobowitz
2001-11-29 17:39                     ` Daniel Jacobowitz
2001-11-29 18:20                     ` Andrew Cagney
2001-11-21  4:10                       ` Andrew Cagney
2001-11-29 22:36                       ` Daniel Jacobowitz
2001-11-21  5:56                         ` Daniel Jacobowitz
2001-12-20 10:02         ` Elena Zannoni

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=15370.29736.747589.390705@krustylu.cygnus.com \
    --to=ezannoni@cygnus.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@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