summaryrefslogtreecommitdiff
path: root/src/dev/arm/timer_cpulocal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/arm/timer_cpulocal.cc')
-rw-r--r--src/dev/arm/timer_cpulocal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/arm/timer_cpulocal.cc b/src/dev/arm/timer_cpulocal.cc
index a3a126f2f..97d3c5883 100644
--- a/src/dev/arm/timer_cpulocal.cc
+++ b/src/dev/arm/timer_cpulocal.cc
@@ -291,7 +291,7 @@ CpuLocalTimer::Timer::timerAtZero()
bool old_pending = pendingIntTimer;
if (timerControl.intEnable)
pendingIntTimer = true;
- if (pendingIntTimer && ~old_pending) {
+ if (pendingIntTimer && !old_pending) {
DPRINTF(Timer, "-- Causing interrupt\n");
parent->gic->sendPPInt(intNumTimer, cpuNum);
}
@@ -322,7 +322,7 @@ CpuLocalTimer::Timer::watchdogAtZero()
//XXX: Should we ever support a true watchdog reset?
}
- if (pendingIntWatchdog && ~old_pending) {
+ if (pendingIntWatchdog && !old_pending) {
DPRINTF(Timer, "-- Causing interrupt\n");
parent->gic->sendPPInt(intNumWatchdog, cpuNum);
}