Hi Jianghao Guo,
I think system.cpu.numCycles will start from the checkpoint; not from the
beginning of your program.
It can be verified by by printing the numCycles in cpu tick () function.
Ideally it should start from 0 when you restore from the checkpoint.
If you are using O3 cpu, I think below is the code -
FullO3CPU<Impl>::tick()
{
DPRINTF(O3CPU, "\n\nFullO3CPU: Ticking main, FullO3CPU.\n");
assert(!switchedOut());
assert(drainState() != DrainState::Drained);
++numCycles;
ppCycles->notify(1);
...
...
Thanks.
--
with regards,
Virendra Kumar Pathak
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users