summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2007-05-20 18:23:05 -0700
committerSteve Reinhardt <stever@eecs.umich.edu>2007-05-20 18:23:05 -0700
commit87adc37e91784575d44572d2520b1adf115fc931 (patch)
tree16724c7bb989b85610a14de6e481a159a3e34629 /src
parentaa5b595f39b778d0f6532b40761ca5d6275c2aa0 (diff)
downloadgem5-87adc37e91784575d44572d2520b1adf115fc931.tar.xz
Insist that PhysicalMemory object have at least one connection.
--HG-- extra : convert_revision : 36c33d25a3b23ac2094577aa504c24fac0f3ffcc
Diffstat (limited to 'src')
-rw-r--r--src/mem/physical.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/physical.cc b/src/mem/physical.cc
index a49959e51..97c42509f 100644
--- a/src/mem/physical.cc
+++ b/src/mem/physical.cc
@@ -76,6 +76,10 @@ PhysicalMemory::PhysicalMemory(Params *p)
void
PhysicalMemory::init()
{
+ if (ports.size() == 0) {
+ fatal("PhysicalMemory object %s is unconnected!", name());
+ }
+
for (PortIterator pi = ports.begin(); pi != ports.end(); ++pi) {
if (*pi)
(*pi)->sendStatusChange(Port::RangeChange);