Hi,
I am trying to collect some statistics from m5 and I am running it in the
AtomicSimpleCPU model, ALPHA FS Mode.
What I understand from the code is that in atomic model,
a) "staticInstPtr" holds some details about the currently executing
instructions,
b) while the "Trace::InstRecord* traceData" can be used to collect dynamic
statistics, like Effective addresses, final data values as the instruction
gets executed.
Please correct me if I am wrong.
I also checked that "traceData" gets initialized in the preExecute function
in cpu/simple/base.cc as follows:-
traceData = tracer->getInstRecord(curTick, tc, curStaticInst,
thread->readPC(), curMacroStaticInst, thread->readMicroPC());
if(traceData)
printf("TraceData Initialized");
But when I am trying to check if tracedata was allocated after the above
instruction is executed, it seems that tracedata is still "Null".
Why is it not initialised then? I am not able to find which getInstRecord is
being referred here.
What could I do to collect the memory reference effective addresses/data
values then? Any pointers to what I should look at?
Thanks,
Reena
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users