Hi Gabe, It's not a bug. curTick() gets magically inserted when serializeAll() is called. I'd be OK if you wanted to pull this out into Python instead of hiding it in the C++ implementation. There are a couple of other things that do this, I think. fork() is one example, but it does the string replace in Python.
https://gem5.googlesource.com/public/gem5/+/master/src/sim/serialize.cc#667. Jason On Fri, Aug 4, 2017 at 7:04 PM Gabe Black <[email protected]> wrote: > Hi folks. I'm doing some work on our internal config scripts, and I notice > in Simulation.py in scriptCheckpoints, there are some format strings > ("cpt.%d" specifically) which don't have any arguments. I *think* this code > is being called, and I also think that somehow %d is being substituted with > curTick, but I don't see where that's done and this looks like a bug. Does > anybody know of any magical something or another which is doing the > substitution? Or maybe I'm not actually running that code and have traced > the calls incorrectly? > > Gabe > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
