cpu: Fix TraceGen flag initalisation
This patch ensures the flags are always initialised.
This commit is contained in:
parent
c2d799c6b0
commit
3e35fa5dcc
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue