summaryrefslogtreecommitdiff
path: root/src/mem/physical.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/physical.cc')
-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);