I accident committed with an email address that is not registered with 
M5-Dev. I copied the message for your convenience.

Best,
-Rick

From: Richard Strong <[EMAIL PROTECTED]>
To: [email protected]
Date: Tue, 09 Dec 2008 13:48:03 -0500
Subject: changeset in m5: IDE: Fix serialization for the IDE controller.
changeset 436cb149e756 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=436cb149e756
description:
       IDE: Fix serialization for the IDE controller.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/dev/ide_ctrl.cc |    3 ++-

diffs (40 lines):

diff -r a7ce656e32a0 -r 436cb149e756 src/dev/ide_ctrl.cc
--- a/src/dev/ide_ctrl.cc       Mon Dec 08 07:17:48 2008 -0800
+++ b/src/dev/ide_ctrl.cc       Tue Dec 09 10:34:08 2008 -0800
@@ -524,9 +524,11 @@
    SERIALIZE_SCALAR(cmdSize);
    SERIALIZE_SCALAR(ctrlAddr);
    SERIALIZE_SCALAR(ctrlSize);
-    SERIALIZE_SCALAR((uint8_t)bmiRegs.command);
+    uint8_t command = bmiRegs.command;
+    SERIALIZE_SCALAR(command);
    SERIALIZE_SCALAR(bmiRegs.reserved0);
-    SERIALIZE_SCALAR((uint8_t)bmiRegs.status);
+    uint8_t status = bmiRegs.status;
+    SERIALIZE_SCALAR(status);
    SERIALIZE_SCALAR(bmiRegs.reserved1);
    SERIALIZE_SCALAR(bmiRegs.bmidtp);
    SERIALIZE_SCALAR(selectBit);
@@ -559,16 +561,17 @@
 IdeController::Channel::unserialize(
        Checkpoint *cp, const std::string &section)
 {
-    uint8_t temp;
    UNSERIALIZE_SCALAR(cmdAddr);
    UNSERIALIZE_SCALAR(cmdSize);
    UNSERIALIZE_SCALAR(ctrlAddr);
    UNSERIALIZE_SCALAR(ctrlSize);
-    UNSERIALIZE_SCALAR(temp);
-    bmiRegs.command = temp;
+    uint8_t command;
+    UNSERIALIZE_SCALAR(command);
+    bmiRegs.command = command;
    UNSERIALIZE_SCALAR(bmiRegs.reserved0);
-    UNSERIALIZE_SCALAR(temp);
-    bmiRegs.status = temp;
+    uint8_t status;
+    UNSERIALIZE_SCALAR(status);
+    bmiRegs.status = status;
    UNSERIALIZE_SCALAR(bmiRegs.reserved1);
    UNSERIALIZE_SCALAR(bmiRegs.bmidtp);
    UNSERIALIZE_SCALAR(selectBit);

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to