From: "Mark Kettenis" <mark.kettenis@xs4all.nl>
To: "Ulrich Weigand" <uweigand@de.ibm.com>
Cc: "Mark Kettenis" <mark.kettenis@xs4all.nl>, gdb-patches@sourceware.org
Subject: Re: [RFA][3/5] New port: Cell BE SPU (the port itself)
Date: Sun, 12 Nov 2006 21:42:00 -0000 [thread overview]
Message-ID: <13750.82.92.89.47.1163367694.squirrel@webmail.xs4all.nl> (raw)
In-Reply-To: <200611121538.kACFcN1Q013275@d12av02.megacenter.de.ibm.com>
> Hi Mark,
>
> thanks for looking at the port!
>
> > First, "spu" doesn't occur anywhere in config.guess. Is this a name the
> > community agrees on? I understand it stands for Synergistic Processor
> > Unit,
> > and it seems a bad idea to me that's a fairly generic term.
>
> "spu" cannot occur as host architecture, therefore it is not in
> config.guess.
> It is, however, in config.sub as a target architecture, and the recently
> committed binutils patch uses it (as does the proposed GCC patch and all
> the
> previously released toolchain packages for Cell, both for Linux and the
> PS3).
Ok,
>
> > > * config/spu/spu-cell.mt: New file.
> > > * config/spu/spu.mt: New file.
> >
> > Two .mt files? I think spu-cell.mt should be renamed spu.mh.
>
> Since spu is never the host architecture, spu.mh would not get used.
>
> The situation is a bit unique here: The spu debugger is itself a PowerPC
> binary and runs on the PowerPC side of the Cell, but it debugs code
> running
> on the SPU side, so it would be a "cross" configuration. On the other
> hand,
> the debugger makes use of special host operating system facilities (ptrace
> plus the spufs file system) to control the SPU inferior -- in this aspect
> it looks like a "native" configuration.
I think *is* a native configuration.
>
> I've tried different ways to integrate this scenario into the GDB
> configure
> structure, and what I've come up with appeared to me to be the most
> straight-
> forward way.
I think it is fundamentally wrong to put native-dependent code in a .mt
file.
> This means I leave GDB's notion of "host" as auto-detected (i.e.
> powerpc64),
> which means that GDB does not configure as a "native" target (since target
> != host). However, the target-dependent files for the spu target actually
> include the spu-linux-nat.c file which installs itself onto the target
> stack
> and provides the "native" debugging capabilities that way.
I think that what you really want is a Linux powerpc native configuration
that can debug both normal powerpc code and spu code. That'd mean adding
spu-linux-nat.c to config/powerpc/linux.mh. But I suppose that doesn't
really work right now. But could we make that work?
> > I also think SPU_NUM_CORE_REGS is a bad name. I first thought
> > this had something to do with core files.
>
> Agreed, I've renamed it.
>
> > May I suggest SPU_NUM_VEC_REGS.
>
> Since the SPU ISA calls them "general-purpose registers" (and it's a bit
> less to type), I'm now using SPU_NUM_GPRS. OK?
Personally I'd prefer something that follows the SPU_NUM_XXX_REGS pattern,
but that's not terribly important.
Mark
next prev parent reply other threads:[~2006-11-12 21:42 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-11 18:39 Ulrich Weigand
2006-11-11 21:19 ` Mark Kettenis
2006-11-12 15:38 ` Ulrich Weigand
2006-11-12 21:42 ` Mark Kettenis [this message]
2006-11-12 22:12 ` Daniel Jacobowitz
2006-11-13 12:27 ` Ulrich Weigand
2006-11-13 12:43 ` Mark Kettenis
2006-11-13 13:48 ` Daniel Jacobowitz
2006-11-13 19:50 ` Jim Blandy
2006-11-18 0:10 ` Ulrich Weigand
2006-11-18 6:03 ` Daniel Jacobowitz
2006-11-18 11:10 ` Ulrich Weigand
2006-11-18 16:41 ` Daniel Jacobowitz
2006-11-18 17:35 ` Mark Kettenis
2006-11-21 20:22 ` Ulrich Weigand
2006-11-21 20:40 ` Daniel Jacobowitz
2006-11-21 21:32 ` Mark Kettenis
2006-11-22 14:13 ` Ulrich Weigand
2006-11-22 18:43 ` Daniel Jacobowitz
2006-11-22 19:46 ` Ulrich Weigand
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=13750.82.92.89.47.1163367694.squirrel@webmail.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb-patches@sourceware.org \
--cc=uweigand@de.ibm.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