init: don't build files that centralize python and swig code
[gem5.git] / src / sim / sim_object.cc
index 157bf1395305801c6d3f6fd374c3614880fa79f8..7a7b83b259ebc6e0866e049b9f4fafbaab5e0f40 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2001-2005 The Regents of The University of Michigan
+ * Copyright (c) 2010 Advanced Micro Devices, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -73,6 +74,18 @@ SimObject::init()
 {
 }
 
+void
+SimObject::loadState(Checkpoint *cp)
+{
+    if (cp->sectionExists(name()))
+        unserialize(cp, name());
+}
+
+void
+SimObject::initState()
+{
+}
+
 void
 SimObject::startup()
 {