From: Daniel Johnson Date: Sun, 10 Jul 2011 17:56:08 +0000 (-0500) Subject: ARM: Fix mp interrupt bug in GIC. X-Git-Tag: stable_2012_02_02~176 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83f91db2ccbdf5af0ec984b1f94c83b8a4fbdc1e;p=gem5.git ARM: Fix mp interrupt bug in GIC. Missing "!" made multiprocessor interrupts operate incorrectly. --- 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; }