From: Tom Marn <tom.marn@telargo.com>
To: Tom Marn <tom.marn@telargo.com>,
gdb-patches@sourceware.org, matej.kupljen@telargo.com
Subject: Re: PATCH: stfiwx implementation for PowerPC gdb simulator
Date: Wed, 29 Nov 2006 08:33:00 -0000 [thread overview]
Message-ID: <456D45BA.9090906@telargo.com> (raw)
In-Reply-To: <20061128160737.GF17349@nevyn.them.org>
Daniel Jacobowitz wrote:
> I would review this patch, except that I have no idea whether it's
> correct. I hope someone more familiar with PowerPC is able to look
> at it.
>
Thank you Daniel
The instruction is the same as stfdx except that the stfiwx has effect only on lower 4 bytes instead of full 8 (as stfdx)
My reference for that instruction:
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.aixassem/doc/alangref/stfiwx.htm
and also:
the code for stfdx in gdb/sim/ppc/ppc-instructions file
> I'd recommend not moving the instruction; I believe the comments are
> section references to the manual from which the pseudocode came
> originally.
>
I agree not moving the location of implementation but: At first, I did implement the instruction on comment out section but I had a problems with dynamic code generator (i don't know why there is not appropriate place), code just won't compile. If someone has a better knowledge about code locations inside ppc-instructions also this could be corrected.
It is also strange that only this instruction is left out (or forgotten), all others "optional PowerPC instructions" are implemented. Instead of this instruction the illegal instruction exception is raised, but also in linux kernel there is no implementation. I think that the problem becomes more and more obvious (this year i think) when GCC starts to generate the binaries with this instruction. The same thing is in the QEMU, guess what, also this instruction is missing, where I'm also trying to implement stfiwx instruction. But this is for QEMU mailing list, where i also saw your contributions, maybe we could fix this problem together.
Tom Marn
next prev parent reply other threads:[~2006-11-29 8:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 11:04 Tom Marn
2006-11-28 16:07 ` Daniel Jacobowitz
2006-11-29 8:33 ` Tom Marn [this message]
2006-11-29 15:28 ` Andrew Cagney
2006-11-29 15:30 ` Daniel Jacobowitz
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=456D45BA.9090906@telargo.com \
--to=tom.marn@telargo.com \
--cc=gdb-patches@sourceware.org \
--cc=matej.kupljen@telargo.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