35,36d34
< #include <map>
< #include <stack>
38d35
< #include <vector>
40a38
> #include "sim/serialize.hh"
50,52d47
< enum cpu_mode { kernel, user, idle, cpu_mode_num };
< extern const char *modestr[];
<
55c50
< private:
---
> protected:
58,64c53
< Addr idleProcess;
< cpu_mode themode;
< Tick lastModeTick;
<
< void changeMode(cpu_mode newmode, ThreadContext *tc);
<
< private:
---
> protected:
74d62
< Stats::Vector<> _callpal;
78,84d65
< Stats::Vector<> _mode;
< Stats::Vector<> _modeGood;
< Stats::Formula _modeFraction;
< Stats::Vector<> _modeTicks;
<
< Stats::Scalar<> _swap_context;
<
90a72
> virtual ~Statistics() {}
98d79
< void hwrei() { _hwrei++; }
100,102d80
< void mode(cpu_mode newmode, ThreadContext *tc);
< void context(Addr oldpcbb, Addr newpcbb, ThreadContext *tc);
< void callpal(int code, ThreadContext *tc);
104,105d81
< void setIdleProcess(Addr idle, ThreadContext *tc);
<