summaryrefslogtreecommitdiff
path: root/src/dev/ide_ctrl.hh
diff options
context:
space:
mode:
authorAuthor Name <r.d.strong@gmail.com>2008-12-14 23:29:49 -0800
committerAuthor Name <r.d.strong@gmail.com>2008-12-14 23:29:49 -0800
commit13f7fdcf67f9ed893a575e78ef170b42eda58ef4 (patch)
treef84a233422c303a669c3a6421a88ec0cc67b581d /src/dev/ide_ctrl.hh
parentdae531c0494bc6142ae3febc3623a4514a727614 (diff)
downloadgem5-13f7fdcf67f9ed893a575e78ef170b42eda58ef4.tar.xz
The ide_ctrl serialize and unserialize were broken.
Multiple channels were saving their state under the same name. This patch separates the saved state of the primary and secondary channel.
Diffstat (limited to 'src/dev/ide_ctrl.hh')
-rw-r--r--src/dev/ide_ctrl.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dev/ide_ctrl.hh b/src/dev/ide_ctrl.hh
index 6a71a6640..89dc1ee9d 100644
--- a/src/dev/ide_ctrl.hh
+++ b/src/dev/ide_ctrl.hh
@@ -111,10 +111,13 @@ class IdeController : public PciDev
Channel(std::string newName, Addr _cmdSize, Addr _ctrlSize);
~Channel();
- void serialize(std::ostream &os);
- void unserialize(Checkpoint *cp, const std::string &section);
+ void serialize(const std::string &base, std::ostream &os);
+ void unserialize(const std::string &base, Checkpoint *cp,
+ const std::string &section);
+ };
- } primary, secondary;
+ Channel primary;
+ Channel secondary;
/** Bus master interface (BMI) registers */
Addr bmiAddr, bmiSize;