diff -r 4ef5871a2c0b -r e236624d82f7 src/mem/ruby/system/System.hh --- a/src/mem/ruby/system/System.hh Thu Aug 05 21:20:08 2010 -0700 +++ b/src/mem/ruby/system/System.hh Thu Aug 05 21:20:26 2010 -0700 @@ -125,6 +125,9 @@ void print(std::ostream& out) const; + virtual void serialize(std::ostream &os); + virtual void unserialize(Checkpoint *cp, const std::string §ion); + private: // Private copy constructor and assignment operator RubySystem(const RubySystem& obj); diff -r 4ef5871a2c0b -r e236624d82f7 src/mem/ruby/system/System.cc --- a/src/mem/ruby/system/System.cc Thu Aug 05 21:20:08 2010 -0700 +++ b/src/mem/ruby/system/System.cc Thu Aug 05 21:20:26 2010 -0700 @@ -148,6 +148,23 @@ } void +RubySystem::serialize(std::ostream &os) +{ + +} + +void +RubySystem::unserialize(Checkpoint *cp, const string §ion) +{ + // + // The main purpose for clearing stats in the unserialize process is so + // that the profiler can correctly set its start time to the unserialized + // value of curTick + // + clearStats(); +} + +void RubySystem::clearStats() const { m_profiler_ptr->clearStats();