diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2007-05-20 23:05:02 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2007-05-20 23:05:02 -0700 |
commit | 0a02e3a7643d15ed662aedf4566a9dea7a07f2f2 (patch) | |
tree | a3088742b179546cb20eaf314c0283e0f97bf4e6 /src/mem | |
parent | dcce351eaa9dfbb05fba124679278e8370b5f770 (diff) | |
parent | 05d14cf3e258bc414695711e6d7303cf31e72fa3 (diff) | |
download | gem5-0a02e3a7643d15ed662aedf4566a9dea7a07f2f2.tar.xz |
Merge vm1.(none):/home/stever/bk/newmem-head
into vm1.(none):/home/stever/bk/newmem-cache2
--HG--
extra : convert_revision : a8efe71a50b9ae480c5ad0aabd7aa9ba22bc2968
Diffstat (limited to 'src/mem')
-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); |