This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: Help!
- To: Ben Elliston <bje at redhat dot com>
- Subject: Re: Help!
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Wed, 3 Jan 2001 22:23:38 -0500
- Cc: cgen at sources dot redhat dot com
- References: <Pine.LNX.4.31.0101041414280.14755-100000@moshpit.cygnus.com>
Hi -
On Thu, Jan 04, 2001 at 02:15:47PM +1100, Ben Elliston wrote:
: [for sim/common]
: In a pbb engine, the hardware PC is not updated until a branch (ie. if no
: one cares what the PC is throughout sequential flow in a pbb, why update
: it?). What if I do want to access it? In the case of a full run (ie. -t),
: is it made available anywhere?
Yes, in several places. The scache entries usually carry a copy
(see *vpc; abuf->addr); one argument of the sem-switch entry function
is the starting pc. Your cgen semantics is supposed to be able to
read the correct pc in the middle of a pbb sequence. Perhaps you mean
making a c-call -- then you should pass the pc explicitly as an
argument instead of pulling it out of the sim cpu state ("hardware PC"?).
Does this make sense? Am I answering your question?
- FChE
PGP signature