Review Board 2.0.15


cpu: Fix TrafficGen trace playback

Review Request #1955 - Created July 18, 2013 and submitted

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 9826:3171372e8b5e
---------------------------
cpu: Fix TrafficGen trace playback

This patch addresses an issue with trace playback in the TrafficGen
where the trace was reset but the header was not read from the trace
when a captured trace was played back for a second time. This resulted
in parsing errors as the expected message was not found in the trace
file.

The header check is moved to an init funtion which is called by the
constructor and when the trace is reset. This ensures that the trace
header is read each time when the trace is replayed.

This patch also addresses a small formatting issue in a panic.
Repeated the same trace a few times. All regressions pass.
Review request changed
Updated (Aug. 19, 2013, 12:47 a.m.)

Status: Closed (submitted)