mem: Ensure trace captures packet fields before forwarding
authorAndreas Hansson <andreas.hansson@armm.com>
Tue, 19 Feb 2013 10:56:05 +0000 (05:56 -0500)
committerAndreas Hansson <andreas.hansson@armm.com>
Tue, 19 Feb 2013 10:56:05 +0000 (05:56 -0500)
commit9947923c605bdbd864aebaa47e6a062390288652
tree6bc512ceb4d6f0115dd6cd58af5bff2d51e198bf
parent21aa950318c3f754797e1aab3533f749559e7e87
mem: Ensure trace captures packet fields before forwarding

This patch fixes a bug in the CommMonitor caused by the packet being
modified before it is captured in the trace. By recording the fields
before passing the packet on, and then putting these values in the
trace we ensure that even if the packet is modified the trace captures
what the CommMonitor saw.
src/mem/comm_monitor.cc