This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Help!


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]