Deleted Added
sdiff udiff text old ( 7460:41550bb10e08 ) new ( 7492:acc1fbbef239 )
full compact
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 31 unchanged lines hidden (view full) ---

40#include <list>
41#include <map>
42#include <string>
43#include <vector>
44
45#include "params/SimObject.hh"
46#include "sim/eventq.hh"
47#include "sim/serialize.hh"
48#include "sim/startup.hh"
49
50class BaseCPU;
51class Event;
52
53/*
54 * Abstract superclass for simulation objects. Represents things that
55 * correspond to physical components and can be specified via the
56 * config file (CPUs, caches, etc.).
57 */
58class SimObject
59 : public EventManager, public Serializable, protected StartupCallback
60{
61 public:
62 enum State {
63 Running,
64 Draining,
65 Drained
66 };
67

--- 30 unchanged lines hidden (view full) ---

98 virtual void init();
99 static void initAll();
100
101 // register statistics for this object
102 virtual void regStats();
103 virtual void regFormulas();
104 virtual void resetStats();
105
106 // static: call reg_stats on all SimObjects
107 static void regAllStats();
108
109 // static: call resetStats on all SimObjects
110 static void resetAllStats();
111
112 // static: call nameOut() & serialize() on all SimObjects
113 static void serializeAll(std::ostream &);

--- 28 unchanged lines hidden ---