summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Johnson <daniel.johnson@arm.com>2011-07-10 12:56:08 -0500
committerDaniel Johnson <daniel.johnson@arm.com>2011-07-10 12:56:08 -0500
commit83f91db2ccbdf5af0ec984b1f94c83b8a4fbdc1e (patch)
treec1e2c690671db8933cbb4d2246a292163747df61
parent678376f0ba3f3440b1fc1b6ace48455db5d75ca9 (diff)
downloadgem5-83f91db2ccbdf5af0ec984b1f94c83b8a4fbdc1e.tar.xz
ARM: Fix mp interrupt bug in GIC.
Missing "!" made multiprocessor interrupts operate incorrectly.
-rw-r--r--src/dev/arm/gic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/arm/gic.cc b/src/dev/arm/gic.cc
index d8feec49a..df4edde91 100644
--- a/src/dev/arm/gic.cc
+++ b/src/dev/arm/gic.cc
@@ -564,7 +564,7 @@ Gic::updateIntState(int hint)
*/
if ((bits(intEnabled[x], y) & bits(pendingInt[x], y)) &&
(intPriority[int_nm] < highest_pri))
- if (mp_sys || (cpuTarget[int_nm] & (1 << cpu))) {
+ if ( (!mp_sys) || (cpuTarget[int_nm] & (1 << cpu))) {
highest_pri = intPriority[int_nm];
highest_int = int_nm;
}