|
From: David G. <dav...@gm...> - 2011-07-12 19:52:11
|
Yes. I'm sorry for not explaining it correctly:
During CLG_(instrument) I store sbIn in a global variable which I then
access in runtime on CLG_(setup_bbcc). Something like this:
CLG_(instrument) {
.....
sbInAct = deepCopyIRSB(sbIn); //Actualizes sbInAct
clgs.bb->id = CLG_(stat).bb_executions + 1;
addBBSetupCall(&clgs);
....
}
On CLG_(setup_bbcc) I first check to see if the block has already been
translated/instrumented with a trick not worth mentioning (I compare
the CLG_(stat).bb_executions with bb->id). If it is the first time the
block is executed (thus translated) I check sbInAct and go through its
statements like I said before. So I'm accessing a structure which has
JIT-time information, even though I'm accessing it on run-time right?
What I would like to know is if there is any way for me to access the
real addresses (so that I can later check for data dependencies
between blocks).
|