diff options
author | Steve Reinhardt <stever@gmail.com> | 2013-07-11 21:57:04 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2013-07-11 21:57:04 -0500 |
commit | 1f43e244bda0c78844720609455fd77f6f275e51 (patch) | |
tree | 65eb7262e58a61992368dfe10f2152dd85eb6129 /src/dev/arm/timer_cpulocal.cc | |
parent | 502ad1e6757116867e0e0529c0c080320a2b440b (diff) | |
download | gem5-1f43e244bda0c78844720609455fd77f6f275e51.tar.xz |
dev: make BasicPioDevice take size in constructor
Instead of relying on derived classes explicitly assigning
to the BasicPioDevice pioSize field, require them to pass
a size value in to the constructor.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/dev/arm/timer_cpulocal.cc')
-rw-r--r-- | src/dev/arm/timer_cpulocal.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dev/arm/timer_cpulocal.cc b/src/dev/arm/timer_cpulocal.cc index 458df0674..ae341e2be 100644 --- a/src/dev/arm/timer_cpulocal.cc +++ b/src/dev/arm/timer_cpulocal.cc @@ -48,7 +48,7 @@ #include "mem/packet_access.hh" CpuLocalTimer::CpuLocalTimer(Params *p) - : BasicPioDevice(p), gic(p->gic) + : BasicPioDevice(p, 0x38), gic(p->gic) { // Initialize the timer registers for each per cpu timer for (int i = 0; i < CPU_MAX; i++) { @@ -60,7 +60,6 @@ CpuLocalTimer::CpuLocalTimer(Params *p) localTimer[i].intNumWatchdog = p->int_num_watchdog; localTimer[i].cpuNum = i; } - pioSize = 0x38; } CpuLocalTimer::Timer::Timer() |