summaryrefslogtreecommitdiff
path: root/src/mem/packet.cc
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2016-12-05 16:48:21 -0500
committerNikos Nikoleris <nikos.nikoleris@arm.com>2016-12-05 16:48:21 -0500
commite16967941bceae40449cf56f822420a7088bd08a (patch)
treea7ccfdcd713c769ff8a485ec088eb585c0c8c632 /src/mem/packet.cc
parent61860f24193d43e137095cb505abd3413bdf708a (diff)
downloadgem5-e16967941bceae40449cf56f822420a7088bd08a.tar.xz
mem: Make packet debug printing more uniform
Previously DPRINTFs printing information about a packet would use ad hoc formats. This patch changes all DPRINTFs to use the print function defined by the packet class, making the packet printing format more uniform and easier to change. Change-Id: Idd436a9758d4bf70c86a574d524648b2a2580970 Reviewed-by: Andreas Hansson <andreas.hansson@arm.com> Reviewed-by: Stephan Diestelhorst <stephan.diestelhorst@arm.com>
Diffstat (limited to 'src/mem/packet.cc')
-rw-r--r--src/mem/packet.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mem/packet.cc b/src/mem/packet.cc
index 4bc74a38e..7efed73b0 100644
--- a/src/mem/packet.cc
+++ b/src/mem/packet.cc
@@ -345,8 +345,12 @@ Packet::popSenderState()
void
Packet::print(ostream &o, const int verbosity, const string &prefix) const
{
- ccprintf(o, "%s[%x:%x] %s\n", prefix,
- getAddr(), getAddr() + getSize() - 1, cmdString());
+ ccprintf(o, "%s%s [%x:%x]%s%s%s%s", prefix, cmdString(),
+ getAddr(), getAddr() + getSize() - 1,
+ req->isSecure() ? " (s)" : "",
+ req->isInstFetch() ? " IF" : "",
+ req->isUncacheable() ? " UC" : "",
+ isExpressSnoop() ? " ES" : "");
}
std::string