diff options
Diffstat (limited to 'src/cpu/testers/traffic_gen')
-rw-r--r-- | src/cpu/testers/traffic_gen/generators.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/testers/traffic_gen/generators.cc b/src/cpu/testers/traffic_gen/generators.cc index 7fec2a34a..22fffc9c3 100644 --- a/src/cpu/testers/traffic_gen/generators.cc +++ b/src/cpu/testers/traffic_gen/generators.cc @@ -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; } |