summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorRadhika Jagtap <radhika.jagtap@ARM.com>2014-03-07 15:56:23 -0500
committerRadhika Jagtap <radhika.jagtap@ARM.com>2014-03-07 15:56:23 -0500
commitc446dc40bd438057536fda6e95a44b43589f92b6 (patch)
treecbf7992b117dd1a09e3cf0268a1323418699d7c0 /src/proto
parent7084e31341f99983a2f3f218fa2ec7fa624ad249 (diff)
downloadgem5-c446dc40bd438057536fda6e95a44b43589f92b6.tar.xz
mem: Edit proto Packet and enhance the python script
This patch changes the decode script to output the optional fields of the proto message Packet, namely id and flags. The flags field is set by the communication monitor. The id field is useful for CPU trace experiments, e.g. linking the fetch side to decode side. It had to be renamed because it clashes with a built in python function id() for getting the "identity" of an object. This patch also takes a few common function definitions out from the multiple scripts and adds them to a protolib python module.
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/packet.proto2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/packet.proto b/src/proto/packet.proto
index 957b494ab..a98df7efe 100644
--- a/src/proto/packet.proto
+++ b/src/proto/packet.proto
@@ -61,5 +61,5 @@ message Packet {
required uint64 addr = 3;
required uint32 size = 4;
optional uint32 flags = 5;
- optional uint64 id = 6;
+ optional uint64 pkt_id = 6;
}