summaryrefslogtreecommitdiff
path: root/cpu/simple_cpu/simple_cpu.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-02-17 14:02:03 -0500
committerNathan Binkert <binkertn@umich.edu>2005-02-17 14:02:03 -0500
commitdd4220ec10e03db5743cfb5246696fd4c494829d (patch)
tree2ba928bb0e981a137f4fd607600b5c39f2e275b7 /cpu/simple_cpu/simple_cpu.hh
parentcfe6ed7c484b62d07bae23c528f0e2e568cf0d65 (diff)
downloadgem5-dd4220ec10e03db5743cfb5246696fd4c494829d.tar.xz
rename the simple cpu's multiplier parameter. call it width.
it makes more sense and is less confusing. cpu/simple_cpu/simple_cpu.cc: cpu/simple_cpu/simple_cpu.hh: width is a better name than multiplier --HG-- extra : convert_revision : ea2fa4faa160f5657aece41df469bbc9f7244b21
Diffstat (limited to 'cpu/simple_cpu/simple_cpu.hh')
-rw-r--r--cpu/simple_cpu/simple_cpu.hh14
1 files changed, 4 insertions, 10 deletions
diff --git a/cpu/simple_cpu/simple_cpu.hh b/cpu/simple_cpu/simple_cpu.hh
index a81d6365b..731b3ddbc 100644
--- a/cpu/simple_cpu/simple_cpu.hh
+++ b/cpu/simple_cpu/simple_cpu.hh
@@ -69,9 +69,9 @@ class SimpleCPU : public BaseCPU
struct TickEvent : public Event
{
SimpleCPU *cpu;
- int multiplier;
+ int width;
- TickEvent(SimpleCPU *c);
+ TickEvent(SimpleCPU *c, int w);
void process();
const char *description();
};
@@ -94,12 +94,6 @@ class SimpleCPU : public BaseCPU
tickEvent.squash();
}
- public:
- void setTickMultiplier(int multiplier)
- {
- tickEvent.multiplier = multiplier;
- }
-
private:
Trace::InstRecord *traceData;
@@ -137,7 +131,7 @@ class SimpleCPU : public BaseCPU
AlphaITB *itb, AlphaDTB *dtb, FunctionalMemory *mem,
MemInterface *icache_interface, MemInterface *dcache_interface,
bool _def_reg, Tick freq,
- bool _function_trace, Tick _function_trace_start);
+ bool _function_trace, Tick _function_trace_start, int width);
#else
@@ -148,7 +142,7 @@ class SimpleCPU : public BaseCPU
Counter max_loads_all_threads,
MemInterface *icache_interface, MemInterface *dcache_interface,
bool _def_reg,
- bool _function_trace, Tick _function_trace_start);
+ bool _function_trace, Tick _function_trace_start, int width);
#endif