post checkpoint restoration the bus ranges need to be re-initialized for ALL pci...
authorLisa Hsu <hsul@eecs.umich.edu>
Mon, 9 Oct 2006 03:18:19 +0000 (23:18 -0400)
committerLisa Hsu <hsul@eecs.umich.edu>
Mon, 9 Oct 2006 03:18:19 +0000 (23:18 -0400)
src/dev/ide_ctrl.cc:
    this range change needs to be done for all pio devices, not just the ide.
src/dev/pcidev.cc:
    range change needs to be done at here, not in the ide_ctrl file.

--HG--
extra : convert_revision : 60c65c55e965b02d671dba7aa8793e5a81f40348

src/dev/ide_ctrl.cc
src/dev/pcidev.cc

index e8d7f48171ef8fab3ac27b6d5214ee997a3ea30d..8007fda5ec6de49a4c0a40b5fb546547b29e8810 100644 (file)
@@ -742,7 +742,6 @@ IdeController::unserialize(Checkpoint *cp, const std::string &section)
     UNSERIALIZE_SCALAR(bm_enabled);
     UNSERIALIZE_ARRAY(cmd_in_progress,
                       sizeof(cmd_in_progress) / sizeof(cmd_in_progress[0]));
-    pioPort->sendStatusChange(Port::RangeChange);
 }
 
 #ifndef DOXYGEN_SHOULD_SKIP_THIS
index c3b83f4483197766e33d5fdbf6d6c7b92d5cfd9a..b16ddb31af6cf7eac03abb8f0f5da6992735d609 100644 (file)
@@ -302,6 +302,8 @@ PciDev::unserialize(Checkpoint *cp, const std::string &section)
     UNSERIALIZE_ARRAY(BARAddrs, sizeof(BARAddrs) / sizeof(BARAddrs[0]));
     UNSERIALIZE_ARRAY(config.data,
                       sizeof(config.data) / sizeof(config.data[0]));
+    pioPort->sendStatusChange(Port::RangeChange);
+
 }
 
 #ifndef DOXYGEN_SHOULD_SKIP_THIS