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, 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 */ |
190 void unserialize(const std::string &base, CheckpointIn &cp); |
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 */ |
249 void serialize(const std::string &base, CheckpointOut &cp) const; |
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 */ |
257 void unserialize(const std::string &base, CheckpointIn &cp); |
258 259 /** Start ticking */ 260 void startup(); 261}; 262 263#endif // __DEV_8254_HH__ |