comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian_drummond@btconnect.com>
Subject: Re: PowerPC ISA
Date: Sat, 14 Mar 2009 13:17:57 +0000
Date: 2009-03-14T13:17:57+00:00	[thread overview]
Message-ID: <jbanr418ap5s3u84vvqfc4g1o647mrjdcg@4ax.com> (raw)
In-Reply-To: 1iwjgj2.1gcbtto1mbvuicN%csampson@inetworld.net

On Fri, 13 Mar 2009 22:58:44 -0700, csampson@inetworld.net (Charles H. Sampson)
wrote:

>     Has anyone developed an Ada type that describes the PowerPC
>instruction set architecture?  Failing that, does anyone know of an
>available description of how a PowerPC CPU might decode instructions?
>
>     I'm fighting a horrendous bug in a high-rate real-time system; a
>procedure's return address on the stack is being overwritten.  I'm going
>to write another procedure that can look at the stack on each execution
>of the crippled procedure.  Initially it will just look at stack sizes.
>As I learn more, it will be modified.
>
>     I've got the IBM book that describes the PowerPC but it's not laid
>out to answer my questions.  If I get no joy here, I'll figure it out
>myself but I have no interest at all in reinventing the wheel.  I need
>to get this done as quickly and cheaply as possible.
>
>                        Charlie

Sometimes all you need is a different view to help the official book make sense.
It's not clear which PowerPC is under discussion but if it is any relation to
the PPC405 (as incorporated onto various Xilinx FPGAs) the following may be
useful. 
"PowerPC Processor Reference Guide"
http://www.xilinx.com/support/documentation/user_guides/ug011.pdf

Possibly also worth scanning XAPP1117 for (Xilinx-specific?) debugging
techniques, and associated source for a program _designed_ to crash! (to
exercise the debugging tools). Stack errors are mentioned on p.12.
http://www.xilinx.com/support/documentation/application_notes/xapp1117.pdf
It seems "the stack" is a much more flexible concept than I am used to: a mere
convention (hopefully) agreed to by all users of registers.

I tried searching support.xilinx.com for "PPC stack" and nothing more jumps out
except for
http://www.xilinx.com/support/answers/24291.htm which says
"The PowerPC stack and heap information is available on the IBM Web site at
http://www-3.ibm.com/chips/techlib/techlib.nsf/techdocs/852569B20050FF77852569970071B0D6/$file/eabi_app.pdf"

That link unfortunately doesn't seem to work any more. Perhaps it serves as a
proof-of-existence for a useful document; searching ibm.com for eabi_app.pdf
might be fruitful.

- Brian 




  reply	other threads:[~2009-03-14 13:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-14  5:58 PowerPC ISA Charles H. Sampson
2009-03-14 13:17 ` Brian Drummond [this message]
2009-03-16 11:48   ` Brian Drummond
2009-03-16  8:37 ` Stuart
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox