Hi,

I think your code "testsys.cpu[i].max_insts = checkpoint_inst" only changes
the configuration file.
Since you have instantiate the C objects with configuration file, any
changes to the configuration file would not affect the generated C objects.
I would suggest define your own setMax() functions in the following files

./python/m5/SimObject.py
./sim/sim_object.cc
./sim/sim_object.hh
./cpu/simple/base.hh

And use "testsys.cpu[i]._ccObject.setMax(max_inst) in Simulation.py
It would then change the parameters in the C objects directly.

Hope it will help you.

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

Reply via email to