Rename SERIALIZE_MEMBER to SERIALIZE_SCALAR.
authorSteve Reinhardt <stever@eecs.umich.edu>
Wed, 29 Oct 2003 08:46:26 +0000 (00:46 -0800)
committerSteve Reinhardt <stever@eecs.umich.edu>
Wed, 29 Oct 2003 08:46:26 +0000 (00:46 -0800)
--HG--
extra : convert_revision : 848cfcf3323d224cdb2ff14df6f6996607a5c27f

arch/alpha/alpha_memory.cc
dev/alpha_console.cc
sim/eventq.cc
sim/serialize.hh

index 2aad41cea2054d57af7e7098e55be73a03176dbd..b959161054e4da70b9c00850d7c02b9f37d578f3 100644 (file)
@@ -194,8 +194,8 @@ AlphaTlb::flushAddr(Addr vaddr, uint8_t asn)
 void
 AlphaTlb::serialize(ostream &os)
 {
-    SERIALIZE_MEMBER(size);
-    SERIALIZE_MEMBER(nlu);
+    SERIALIZE_SCALAR(size);
+    SERIALIZE_SCALAR(nlu);
 
     // should just add serialize/unserialize methods to AlphaPTE
 #if 0
@@ -243,8 +243,8 @@ AlphaTlb::serialize(ostream &os)
 void
 AlphaTlb::unserialize(const IniFile *db, const string &section)
 {
-    UNSERIALIZE_MEMBER(size);
-    UNSERIALIZE_MEMBER(nlu);
+    UNSERIALIZE_SCALAR(size);
+    UNSERIALIZE_SCALAR(nlu);
 
 #if 0
     string data;
index 9bf74bce41d7605ea2b9b3cc76a79910b5ca6083..969b1e4c3097a2d05e19f1b68d7a2a723a08ab24 100644 (file)
@@ -168,45 +168,45 @@ AlphaConsole::write(MemReqPtr req, const uint8_t *data)
 void
 AlphaAccess::serialize(ostream &os)
 {
-    SERIALIZE_MEMBER(last_offset);
-    SERIALIZE_MEMBER(version);
-    SERIALIZE_MEMBER(numCPUs);
-    SERIALIZE_MEMBER(mem_size);
-    SERIALIZE_MEMBER(cpuClock);
-    SERIALIZE_MEMBER(intrClockFrequency);
-    SERIALIZE_MEMBER(kernStart);
-    SERIALIZE_MEMBER(kernEnd);
-    SERIALIZE_MEMBER(entryPoint);
-    SERIALIZE_MEMBER(diskUnit);
-    SERIALIZE_MEMBER(diskCount);
-    SERIALIZE_MEMBER(diskPAddr);
-    SERIALIZE_MEMBER(diskBlock);
-    SERIALIZE_MEMBER(diskOperation);
-    SERIALIZE_MEMBER(outputChar);
-    SERIALIZE_MEMBER(bootStrapImpure);
-    SERIALIZE_MEMBER(bootStrapCPU);
+    SERIALIZE_SCALAR(last_offset);
+    SERIALIZE_SCALAR(version);
+    SERIALIZE_SCALAR(numCPUs);
+    SERIALIZE_SCALAR(mem_size);
+    SERIALIZE_SCALAR(cpuClock);
+    SERIALIZE_SCALAR(intrClockFrequency);
+    SERIALIZE_SCALAR(kernStart);
+    SERIALIZE_SCALAR(kernEnd);
+    SERIALIZE_SCALAR(entryPoint);
+    SERIALIZE_SCALAR(diskUnit);
+    SERIALIZE_SCALAR(diskCount);
+    SERIALIZE_SCALAR(diskPAddr);
+    SERIALIZE_SCALAR(diskBlock);
+    SERIALIZE_SCALAR(diskOperation);
+    SERIALIZE_SCALAR(outputChar);
+    SERIALIZE_SCALAR(bootStrapImpure);
+    SERIALIZE_SCALAR(bootStrapCPU);
 }
 
 void
 AlphaAccess::unserialize(const IniFile *db, const std::string &section)
 {
-    UNSERIALIZE_MEMBER(last_offset);
-    UNSERIALIZE_MEMBER(version);
-    UNSERIALIZE_MEMBER(numCPUs);
-    UNSERIALIZE_MEMBER(mem_size);
-    UNSERIALIZE_MEMBER(cpuClock);
-    UNSERIALIZE_MEMBER(intrClockFrequency);
-    UNSERIALIZE_MEMBER(kernStart);
-    UNSERIALIZE_MEMBER(kernEnd);
-    UNSERIALIZE_MEMBER(entryPoint);
-    UNSERIALIZE_MEMBER(diskUnit);
-    UNSERIALIZE_MEMBER(diskCount);
-    UNSERIALIZE_MEMBER(diskPAddr);
-    UNSERIALIZE_MEMBER(diskBlock);
-    UNSERIALIZE_MEMBER(diskOperation);
-    UNSERIALIZE_MEMBER(outputChar);
-    UNSERIALIZE_MEMBER(bootStrapImpure);
-    UNSERIALIZE_MEMBER(bootStrapCPU);
+    UNSERIALIZE_SCALAR(last_offset);
+    UNSERIALIZE_SCALAR(version);
+    UNSERIALIZE_SCALAR(numCPUs);
+    UNSERIALIZE_SCALAR(mem_size);
+    UNSERIALIZE_SCALAR(cpuClock);
+    UNSERIALIZE_SCALAR(intrClockFrequency);
+    UNSERIALIZE_SCALAR(kernStart);
+    UNSERIALIZE_SCALAR(kernEnd);
+    UNSERIALIZE_SCALAR(entryPoint);
+    UNSERIALIZE_SCALAR(diskUnit);
+    UNSERIALIZE_SCALAR(diskCount);
+    UNSERIALIZE_SCALAR(diskPAddr);
+    UNSERIALIZE_SCALAR(diskBlock);
+    UNSERIALIZE_SCALAR(diskOperation);
+    UNSERIALIZE_SCALAR(outputChar);
+    UNSERIALIZE_SCALAR(bootStrapImpure);
+    UNSERIALIZE_SCALAR(bootStrapCPU);
 }
 
 void
index 7285f63e83b4869b55b56e68cdf890430b3b4170..7138d868846098ad6f80bbd694ef8d26c4ba58a2 100644 (file)
@@ -150,7 +150,7 @@ EventQueue::serialize(ostream &os)
         event = event->next;
     }
     nameOut(os, "Serialized");
-    SERIALIZE_MEMBER(objects);
+    SERIALIZE_SCALAR(objects);
 #endif
 }
 
index 668e654b7b763eea4987d7bbaae296b1b9cb9a60..9c321b897da816af86e24399492cb7311c4b3696 100644 (file)
@@ -62,9 +62,9 @@ void arrayParamIn(const IniFile *db, const std::string &section,
 // These macros are streamlined to use in serialize/unserialize
 // functions.  It's assumed that serialize() has a parameter 'os' for
 // the ostream, and unserialize() has parameters 'db' and 'section'.
-#define SERIALIZE_MEMBER(member)       paramOut(os, #member, member)
+#define SERIALIZE_SCALAR(scalar)       paramOut(os, #scalar, scalar)
 
-#define UNSERIALIZE_MEMBER(member)     paramIn(db, section, #member, member)
+#define UNSERIALIZE_SCALAR(scalar)     paramIn(db, section, #scalar, scalar)
 
 #define SERIALIZE_ARRAY(member, size)  \
         arrayParamOut(os, #member, member, size)