after unserialization in the ide driver we need to reprogram the
authorAli Saidi <saidi@eecs.umich.edu>
Fri, 11 Jun 2004 05:55:20 +0000 (01:55 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Fri, 11 Jun 2004 05:55:20 +0000 (01:55 -0400)
busbridges. Also small fix for gcc 3.3.3.

dev/etherpkt.hh:
    Gcc 3.3.3 wants assert.h to be include in this file.
dev/ide_ctrl.cc:
    after unserialization we need to tell the busbridges what addresses to
    respond to.

--HG--
extra : convert_revision : a421197a5be07761bdef571d0a9406d77788e270

dev/etherpkt.hh
dev/ide_ctrl.cc

index 8d0022363fae8a5ad17998479cb93ba5228700bd..76b4a9156978423d37b2223e987814db32c7d0e6 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <iosfwd>
 #include <memory>
+#include <assert.h>
 
 #include "sim/host.hh"
 #include "base/refcnt.hh"
index b25f837239fdef4deb5e1d5833ea3e009de8fff4..67da63a9b8f4d8a43c823b41c93d8bfee1528705 100644 (file)
@@ -653,6 +653,17 @@ IdeController::unserialize(Checkpoint *cp, const std::string &section)
     UNSERIALIZE_SCALAR(io_enabled);
     UNSERIALIZE_SCALAR(bm_enabled);
     UNSERIALIZE_ARRAY(cmd_in_progress, 4);
+    if (pioInterface) {
+        pioInterface->addAddrRange(pri_cmd_addr, pri_cmd_addr +
+                                   pri_cmd_size - 1);
+        pioInterface->addAddrRange(pri_ctrl_addr, pri_ctrl_addr +
+                                   pri_ctrl_size - 1);
+        pioInterface->addAddrRange(sec_cmd_addr, sec_cmd_addr +
+                                   sec_cmd_size - 1);
+        pioInterface->addAddrRange(sec_ctrl_addr, sec_ctrl_addr +
+                                   sec_ctrl_size - 1);
+        pioInterface->addAddrRange(bmi_addr, bmi_addr + bmi_size - 1);
+   }
 }
 
 #ifndef DOXYGEN_SHOULD_SKIP_THIS