cpu: Fix TraceGen flag initalisation

This patch ensures the flags are always initialised.
This commit is contained in:
Andreas Hansson 2013-04-23 05:07:10 -04:00
parent c2d799c6b0
commit 3e35fa5dcc

View file

@ -215,8 +215,7 @@ TraceGen::InputStream::read(TraceElement& element)
element.addr = pkt_msg.addr();
element.blocksize = pkt_msg.size();
element.tick = pkt_msg.tick();
if (pkt_msg.has_flags())
element.flags = pkt_msg.flags();
element.flags = pkt_msg.has_flags() ? pkt_msg.flags() : 0;
return true;
}