diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/physical.cc | 4 |
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); |