intel_8254_timer.hh (10642:9d3b6e7dd205) | intel_8254_timer.hh (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 2004, 2005 3 * The Regents of The University of Michigan 4 * All Rights Reserved 5 * 6 * This code is part of the M5 simulator. 7 * 8 * Permission is granted to use, copy, create derivative works and --- 165 unchanged lines hidden (view full) --- 174 /** Is the output high? */ 175 bool outputHigh(); 176 177 /** 178 * Serialize this object to the given output stream. 179 * @param base The base name of the counter object. 180 * @param os The stream to serialize to. 181 */ | 1/* 2 * Copyright (c) 2004, 2005 3 * The Regents of The University of Michigan 4 * All Rights Reserved 5 * 6 * This code is part of the M5 simulator. 7 * 8 * Permission is granted to use, copy, create derivative works and --- 165 unchanged lines hidden (view full) --- 174 /** Is the output high? */ 175 bool outputHigh(); 176 177 /** 178 * Serialize this object to the given output stream. 179 * @param base The base name of the counter object. 180 * @param os The stream to serialize to. 181 */ |
182 void serialize(const std::string &base, std::ostream &os); | 182 void serialize(const std::string &base, CheckpointOut &cp) const; |
183 184 /** 185 * Reconstruct the state of this object from a checkpoint. 186 * @param base The base name of the counter object. 187 * @param cp The checkpoint use. 188 * @param section The section name of this object 189 */ | 183 184 /** 185 * Reconstruct the state of this object from a checkpoint. 186 * @param base The base name of the counter object. 187 * @param cp The checkpoint use. 188 * @param section The section name of this object 189 */ |
190 void unserialize(const std::string &base, Checkpoint *cp, 191 const std::string §ion); | 190 void unserialize(const std::string &base, CheckpointIn &cp); |
192 193 /** Start ticking */ 194 void startup(); 195 }; 196 197 protected: 198 std::string _name; 199 const std::string &name() const { return _name; } --- 42 unchanged lines hidden (view full) --- 242 return counter[num]->outputHigh(); 243 } 244 245 /** 246 * Serialize this object to the given output stream. 247 * @param base The base name of the counter object. 248 * @param os The stream to serialize to. 249 */ | 191 192 /** Start ticking */ 193 void startup(); 194 }; 195 196 protected: 197 std::string _name; 198 const std::string &name() const { return _name; } --- 42 unchanged lines hidden (view full) --- 241 return counter[num]->outputHigh(); 242 } 243 244 /** 245 * Serialize this object to the given output stream. 246 * @param base The base name of the counter object. 247 * @param os The stream to serialize to. 248 */ |
250 void serialize(const std::string &base, std::ostream &os); | 249 void serialize(const std::string &base, CheckpointOut &cp) const; |
251 252 /** 253 * Reconstruct the state of this object from a checkpoint. 254 * @param base The base name of the counter object. 255 * @param cp The checkpoint use. 256 * @param section The section name of this object 257 */ | 250 251 /** 252 * Reconstruct the state of this object from a checkpoint. 253 * @param base The base name of the counter object. 254 * @param cp The checkpoint use. 255 * @param section The section name of this object 256 */ |
258 void unserialize(const std::string &base, Checkpoint *cp, 259 const std::string §ion); | 257 void unserialize(const std::string &base, CheckpointIn &cp); |
260 261 /** Start ticking */ 262 void startup(); 263}; 264 265#endif // __DEV_8254_HH__ | 258 259 /** Start ticking */ 260 void startup(); 261}; 262 263#endif // __DEV_8254_HH__ |