summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2012-05-10 18:04:27 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2012-05-10 18:04:27 -0500
commit574566550941aec56611f79d589bb4200b4b5b48 (patch)
treef5af4f86f65cd107fde5bb808b0f1d3b0f17c50b /src/mem
parent4f66bcdd2e2cf983f66fe745eaa27698e90d0d60 (diff)
downloadgem5-574566550941aec56611f79d589bb4200b4b5b48.tar.xz
gem5: assert before indexing intro arrays to verify bounds
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/abstract_mem.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/abstract_mem.cc b/src/mem/abstract_mem.cc
index 13a1183a2..1b28a2319 100644
--- a/src/mem/abstract_mem.cc
+++ b/src/mem/abstract_mem.cc
@@ -390,6 +390,7 @@ AbstractMemory::functionalAccess(PacketPtr pkt)
} else if (pkt->isPrint()) {
Packet::PrintReqState *prs =
dynamic_cast<Packet::PrintReqState*>(pkt->senderState);
+ assert(prs);
// Need to call printLabels() explicitly since we're not going
// through printObj().
prs->printLabels();