base.hh (3125:febd811bccc6) base.hh (3126:756092c6383c)
1/*
2 * Copyright (c) 2002-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;

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

49class CPUProgressEvent : public Event
50{
51 protected:
52 Tick interval;
53 Counter lastNumInst;
54 BaseCPU *cpu;
55
56 public:
1/*
2 * Copyright (c) 2002-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;

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

49class CPUProgressEvent : public Event
50{
51 protected:
52 Tick interval;
53 Counter lastNumInst;
54 BaseCPU *cpu;
55
56 public:
57 CPUProgressEvent(EventQueue *q, Tick ival, BaseCPU *_cpu)
58 : Event(q, Event::Stat_Event_Pri), interval(ival), lastNumInst(0), cpu(_cpu)
59 { schedule(curTick + interval); }
57 CPUProgressEvent(EventQueue *q, Tick ival, BaseCPU *_cpu);
60
61 void process();
62
63 virtual const char *description();
64};
65
66class BaseCPU : public MemObject
67{

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

133 {
134 std::string name;
135 int numberOfThreads;
136 bool deferRegistration;
137 Counter max_insts_any_thread;
138 Counter max_insts_all_threads;
139 Counter max_loads_any_thread;
140 Counter max_loads_all_threads;
58
59 void process();
60
61 virtual const char *description();
62};
63
64class BaseCPU : public MemObject
65{

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

131 {
132 std::string name;
133 int numberOfThreads;
134 bool deferRegistration;
135 Counter max_insts_any_thread;
136 Counter max_insts_all_threads;
137 Counter max_loads_any_thread;
138 Counter max_loads_all_threads;
141 Counter stats_reset_inst;
142 Tick clock;
143 bool functionTrace;
144 Tick functionTraceStart;
145 System *system;
146#if FULL_SYSTEM
147 int cpu_id;
148 Tick profile;
149#endif

--- 112 unchanged lines hidden ---
139 Tick clock;
140 bool functionTrace;
141 Tick functionTraceStart;
142 System *system;
143#if FULL_SYSTEM
144 int cpu_id;
145 Tick profile;
146#endif

--- 112 unchanged lines hidden ---