diff options
Diffstat (limited to 'src/dev/arm/timer_cpulocal.cc')
-rw-r--r-- | src/dev/arm/timer_cpulocal.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dev/arm/timer_cpulocal.cc b/src/dev/arm/timer_cpulocal.cc index 448ac2189..033031547 100644 --- a/src/dev/arm/timer_cpulocal.cc +++ b/src/dev/arm/timer_cpulocal.cc @@ -66,7 +66,9 @@ CpuLocalTimer::CpuLocalTimer(Params *p) CpuLocalTimer::Timer::Timer() : timerControl(0x0), watchdogControl(0x0), rawIntTimer(false), rawIntWatchdog(false), rawResetWatchdog(false), watchdogDisableReg(0x0), pendingIntTimer(false), pendingIntWatchdog(false), - timerLoadValue(0x0), watchdogLoadValue(0x0), timerZeroEvent(this), watchdogZeroEvent(this) + timerLoadValue(0x0), watchdogLoadValue(0x0), + timerZeroEvent([this]{ timerAtZero(); }, name()), + watchdogZeroEvent([this]{ watchdogAtZero(); }, name()) { } |