Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2002 09:16:08 -0700
From:      Jason R Thorpe <thorpej@wasabisystems.com>
To:        Mark Kettenis <kettenis@chello.nl>
Cc:        freebsd-arch@freebsd.org, bsd-api-discuss@wasabisystems.com
Subject:   Re: ptrace(2) and vector registers
Message-ID:  <20021026091608.L19682@dhcp7.wlan.shagadelic.org>
In-Reply-To: <200210212039.g9LKdMjS001116@elgar.kettenis.dyndns.org>; from kettenis@chello.nl on Mon, Oct 21, 2002 at 10:39:22PM %2B0200
References:  <200210212039.g9LKdMjS001116@elgar.kettenis.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 21, 2002 at 10:39:22PM +0200, Mark Kettenis wrote:

 > NetBSD already has support for the SSE registers.  There is `struct
 > xmmregs' in <machine/reg.h> and PT_GETXMMREGS & PT_SETXMMREGS
 > reequests in <machine/ptrace.h>.  I have to say that I'm not terribly
 > happy with `struct xmmregs', since it ends with an 's', where the
 > other structs in <machine/ptrace.h> (`struct reg' and `struct fpreg')
 > don't.  But the most inportant thing is that these names are tied to
 > the x86.  Since both SSE and AltiVec are some sort of vector registers
 > I'd like to propose `struct vreg' and PT_GETVREGS & PT_SETVREGS as
 > alternatives.  NetBSD/powerpc already defines `struct vreg'.

That "s" on the end is my fault -- guess I got a little carried away
(it's certainly possible that my brain silently added the "s" without
my knowledge every time I typed it :-)

I suppose a "struct vreg" would be fine.  I could certainly change
NetBSD/i386 to use that name (keeping the "xmmregs" name around for
backward compatibility).

The danger is, of course, that at some point in the future, the XMM stuff
will be extended yet again, leaving us with a useless generic name.

In fact, NetBSD/arm already has this problem -- there are two distinct
types of floating point register sets -- the FPA (old floating point
accelerator available for e.g. ARM7) and VFP (the vector floating point
defined by ARMv5).  Don't let the "vector" in VFP fool you -- it is also
used to plain old IEEE FP -- so in your world, would that be "fpreg" or
"vreg"?

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021026091608.L19682>