diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2014-09-01 16:55:46 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2014-09-01 16:55:46 -0500 |
commit | d07abd9b5b7c9d0b47e1f3edc87da3823adaad11 (patch) | |
tree | 2d8ff0dc941d635542d3fd722cda4b3437e36431 | |
parent | cee8faaad066cda6710904b5190e7287ff9356af (diff) | |
download | gem5-d07abd9b5b7c9d0b47e1f3edc87da3823adaad11.tar.xz |
mem: change the namespace Message to ProtoMessage
The namespace Message conflicts with the Message data type used extensively
in Ruby. Since Ruby is being moved to the same Master/Slave ports based
configuration style as the rest of gem5, this conflict needs to be resolved.
Hence, the namespace is being renamed to ProtoMessage.
-rw-r--r-- | src/cpu/testers/traffic_gen/generators.cc | 4 | ||||
-rw-r--r-- | src/mem/comm_monitor.cc | 4 | ||||
-rw-r--r-- | src/proto/packet.proto | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/cpu/testers/traffic_gen/generators.cc b/src/cpu/testers/traffic_gen/generators.cc index f0c126a81..7c6bab92c 100644 --- a/src/cpu/testers/traffic_gen/generators.cc +++ b/src/cpu/testers/traffic_gen/generators.cc @@ -301,7 +301,7 @@ void TraceGen::InputStream::init() { // Create a protobuf message for the header and read it from the stream - Message::PacketHeader header_msg; + ProtoMessage::PacketHeader header_msg; if (!trace.read(header_msg)) { panic("Failed to read packet header from trace\n"); @@ -322,7 +322,7 @@ TraceGen::InputStream::reset() bool TraceGen::InputStream::read(TraceElement& element) { - Message::Packet pkt_msg; + ProtoMessage::Packet pkt_msg; if (trace.read(pkt_msg)) { element.cmd = pkt_msg.cmd(); element.addr = pkt_msg.addr(); diff --git a/src/mem/comm_monitor.cc b/src/mem/comm_monitor.cc index 3bfaad289..3c3af76ea 100644 --- a/src/mem/comm_monitor.cc +++ b/src/mem/comm_monitor.cc @@ -84,7 +84,7 @@ CommMonitor::CommMonitor(Params* params) // Create a protobuf message for the header and write it to // the stream - Message::PacketHeader header_msg; + ProtoMessage::PacketHeader header_msg; header_msg.set_obj_id(name()); header_msg.set_tick_freq(SimClock::Frequency); traceStream->write(header_msg); @@ -214,7 +214,7 @@ CommMonitor::recvTimingReq(PacketPtr pkt) // Create a protobuf message representing the // packet. Currently we do not preserve the flags in the // trace. - Message::Packet pkt_msg; + ProtoMessage::Packet pkt_msg; pkt_msg.set_tick(curTick()); pkt_msg.set_cmd(cmd); pkt_msg.set_flags(req_flags); diff --git a/src/proto/packet.proto b/src/proto/packet.proto index a98df7efe..d27599691 100644 --- a/src/proto/packet.proto +++ b/src/proto/packet.proto @@ -36,7 +36,7 @@ // Authors: Andreas Hansson // Put all the generated messages in a namespace -package Message; +package ProtoMessage; // Packet header with the identifier describing what object captured // the trace, the version of this file format, and the tick frequency |