cpu: Adjust for trace offset and fix stats
authorRadhika Jagtap <radhika.jagtap@arm.com>
Thu, 15 Sep 2016 17:01:16 +0000 (18:01 +0100)
committerRadhika Jagtap <radhika.jagtap@arm.com>
Thu, 15 Sep 2016 17:01:16 +0000 (18:01 +0100)
commitd067327fc0c1a67ad2d456840e83db7b593b94a0
tree693f455704b384e6215fde31ef15195466751936
parentd7724d5f542b3ffcb1de05bc2960c820c7b96c85
cpu: Adjust for trace offset and fix stats

This change subtracts the time offset present in the trace from
all the event times when nodes and request are sent so that the
replay starts immediately when the simulation starts. This makes
the stats accurate when the time offset in traces is large, for
example when traces are generated in the middle of a workload
execution. It also solves the problem of unnecessary DRAM
refresh events that would keep occuring during the large time
offset before even a single request is replayed into the system.

Change-Id: Ie0898842615def867ffd5c219948386d952af7f7
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/cpu/trace/trace_cpu.cc
src/cpu/trace/trace_cpu.hh