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.
This commit is contained in:
@@ -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 §ion);
|
||||
void serialize(const std::string &base, std::ostream &os);
|
||||
void unserialize(const std::string &base, Checkpoint *cp,
|
||||
const std::string §ion);
|
||||
};
|
||||
|
||||
} primary, secondary;
|
||||
Channel primary;
|
||||
Channel secondary;
|
||||
|
||||
/** Bus master interface (BMI) registers */
|
||||
Addr bmiAddr, bmiSize;
|
||||
|
||||
Reference in New Issue
Block a user