Bug fix for check on protobuf file frequency being different than
global frequency.
The ASCII encoder script is also fixed, and the example trace used in
the regressions is updated.
ProtoMessage::PacketHeader header_msg;
if (!trace.read(header_msg)) {
panic("Failed to read packet header from trace\n");
-
- if (header_msg.tick_freq() != SimClock::Frequency) {
- panic("Trace was recorded with a different tick frequency %d\n",
- header_msg.tick_freq());
- }
+ } else if (header_msg.tick_freq() != SimClock::Frequency) {
+ panic("Trace was recorded with a different tick frequency %d\n",
+ header_msg.tick_freq());
}
}
-gem51
-)Converted ASCII trace tgen-simple-mem.trc\18\80\94ëÜ\ 3\f\bè\a\10\ 1\18ç\8a\8d @\v\b \1f\10\ 4\18ïý\ 2 @
\ No newline at end of file
+gem5)
+ Converted ASCII trace output.txt\18\80 \94¥\8d\1d\f\bè\a\10\ 1\18ç\8a\8d @\v\b \1f\10\ 4\18ïý\ 2 @
\ No newline at end of file
header = packet_pb2.PacketHeader()
header.obj_id = "Converted ASCII trace " + sys.argv[1]
# Assume the default tick rate
- header.tick_freq = 1000000000
+ header.tick_freq = 1000000000000
protolib.encodeMessage(proto_out, header)
# For each line in the ASCII trace, create a packet message and