ARM: Fix incorrect use of not operators in arm devices
This commit is contained in:
@@ -191,7 +191,7 @@ PL031::counterMatch()
|
||||
rawInt = true;
|
||||
bool old_pending = pendingInt;
|
||||
pendingInt = maskInt & rawInt;
|
||||
if (pendingInt && ~old_pending) {
|
||||
if (pendingInt && !old_pending) {
|
||||
DPRINTF(Timer, "-- Causing interrupt\n");
|
||||
gic->sendInt(intNum);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ Sp804::Timer::counterAtZero()
|
||||
bool old_pending = pendingInt;
|
||||
if (control.intEnable)
|
||||
pendingInt = true;
|
||||
if (pendingInt && ~old_pending) {
|
||||
if (pendingInt && !old_pending) {
|
||||
DPRINTF(Timer, "-- Causing interrupt\n");
|
||||
parent->gic->sendInt(intNum);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user