Insist that PhysicalMemory object have at least one connection.
--HG-- extra : convert_revision : 36c33d25a3b23ac2094577aa504c24fac0f3ffcc
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user