summaryrefslogtreecommitdiff
path: root/src/mem/physical.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@gmail.com>2008-01-02 13:46:22 -0800
committerSteve Reinhardt <stever@gmail.com>2008-01-02 13:46:22 -0800
commitcde5a79eab22a3f6f10ebc68f24260721c98790f (patch)
tree008ab1f1fc7ce5a0397490be9028c7ce47999f1d /src/mem/physical.cc
parent3952e41ab1f1dfaa2f97a6a486528e4ea0bfc5a1 (diff)
downloadgem5-cde5a79eab22a3f6f10ebc68f24260721c98790f.tar.xz
Additional comments and helper functions for PrintReq.
--HG-- extra : convert_revision : 7eadf9b7db8c0289480f771271b6efe2400006d4
Diffstat (limited to 'src/mem/physical.cc')
-rw-r--r--src/mem/physical.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mem/physical.cc b/src/mem/physical.cc
index 40dc30afb..3560fc670 100644
--- a/src/mem/physical.cc
+++ b/src/mem/physical.cc
@@ -323,8 +323,12 @@ PhysicalMemory::doFunctionalAccess(PacketPtr pkt)
TRACE_PACKET("Write");
pkt->makeAtomicResponse();
} else if (pkt->isPrint()) {
- Packet::PrintReqState *prs = dynamic_cast<Packet::PrintReqState*>(pkt->senderState);
+ Packet::PrintReqState *prs =
+ dynamic_cast<Packet::PrintReqState*>(pkt->senderState);
+ // Need to call printLabels() explicitly since we're not going
+ // through printObj().
prs->printLabels();
+ // Right now we just print the single byte at the specified address.
ccprintf(prs->os, "%s%#x\n", prs->curPrefix(), *hostAddr);
} else {
panic("PhysicalMemory: unimplemented functional command %s",