Hello again --

Using M5 2.0b2, I have created a class which I instantiate in various CPU
structures.  This class uses Stats::Formula objects to calculate values for
me at the end of simulation.  These values involve per-structure parameters
which are constant over simulation but different between each structure.
I'm having trouble getting these values into my Stats::Formula variables.  I
may just be overlooking something silly here...

From what I can tell, it seems that all the Stats get re-initialized
sometime between the constructor call and the time simulation starts.  (I've
tried variously putting init code in the constructor and in regStats(),
after the Stats have been registered, with the same results.)  Is there a
way to declare a 'constant' stat that doesn't get initialized like this at
the begining of execution?  For some reason, I can't seem to use the value
that I pass in directly in the Stats::Formula, either (the website has a
note to this effect.)

Am I missing something?

Thanks,

  -Vilas
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to