summaryrefslogtreecommitdiff
path: root/src/dev/arm/timer_sp804.cc
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2012-05-10 18:04:27 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2012-05-10 18:04:27 -0500
commitd9b484b41a96201f58711e3f96616842a960997e (patch)
tree789bad34bf509e58a15ce4224ae7f105d9045d7e /src/dev/arm/timer_sp804.cc
parent574566550941aec56611f79d589bb4200b4b5b48 (diff)
downloadgem5-d9b484b41a96201f58711e3f96616842a960997e.tar.xz
ARM: Fix incorrect use of not operators in arm devices
Diffstat (limited to 'src/dev/arm/timer_sp804.cc')
-rw-r--r--src/dev/arm/timer_sp804.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/arm/timer_sp804.cc b/src/dev/arm/timer_sp804.cc
index 323597a98..407f35b60 100644
--- a/src/dev/arm/timer_sp804.cc
+++ b/src/dev/arm/timer_sp804.cc
@@ -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);
}