summaryrefslogtreecommitdiff
path: root/mem/physical.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-04-10 14:40:22 -0400
committerAli Saidi <saidi@eecs.umich.edu>2006-04-10 14:40:22 -0400
commit93b271117f8fc93b844b08934ee8fcfa5224053d (patch)
tree5d39d3794fd2d60c56c56fff8fba2059c71a8287 /mem/physical.cc
parente17a15f4c5d9a0b65de5e4b0ddceac81385d5360 (diff)
downloadgem5-93b271117f8fc93b844b08934ee8fcfa5224053d.tar.xz
Panic if physical memory isn't connected to anything
send range change at init for all devices dev/io_device.cc: dev/io_device.hh: add init function for pio devices to sent status changes around mem/physical.cc: mem/physical.hh: Panic if physical memory isn't connected to anything --HG-- extra : convert_revision : 4223d1c3c73522d1e196c218eb0084d238677ad9
Diffstat (limited to 'mem/physical.cc')
-rw-r--r--mem/physical.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/mem/physical.cc b/mem/physical.cc
index 603f8f63e..b00935990 100644
--- a/mem/physical.cc
+++ b/mem/physical.cc
@@ -90,6 +90,14 @@ PhysicalMemory::PhysicalMemory(const string &n)
page_ptr = 0;
}
+void
+PhysicalMemory::init()
+{
+ if (!port)
+ panic("PhysicalMemory not connected to anything!");
+ port->sendStatusChange(Port::RangeChange);
+}
+
PhysicalMemory::~PhysicalMemory()
{
if (pmem_addr)