Received: from eggs.gnu.org ([2001:4830:134:3::10]:35283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLtZV-0001lD-Ty for qemu-devel@nongnu.org; Tue, 27 Dec 2016 10:21:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLtZV-0001CK-9g for qemu-devel@nongnu.org; Tue, 27 Dec 2016 10:21:49 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:47866) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cLtZV-0001C8-36 for qemu-devel@nongnu.org; Tue, 27 Dec 2016 10:21:49 -0500 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1cLtZU-0003rs-8Y for qemu-devel@nongnu.org; Tue, 27 Dec 2016 15:21:48 +0000 From: Peter Maydell Date: Tue, 27 Dec 2016 15:20:58 +0000 Message-Id: <1482852077-19397-7-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1482852077-19397-1-git-send-email-peter.maydell@linaro.org> References: <1482852077-19397-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 06/25] hw/intc/arm_gicv3_common: fix aff3 in typer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Andrew Jones Signed-off-by: Andrew Jones Message-id: 20161209143703.29457-1-drjones@redhat.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/intc/arm_gicv3_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/intc/arm_gicv3_common.c b/hw/intc/arm_gicv3_common.c index 0f8c4b8..0aa9b9c 100644 --- a/hw/intc/arm_gicv3_common.c +++ b/hw/intc/arm_gicv3_common.c @@ -204,7 +204,8 @@ static void arm_gicv3_common_realize(DeviceState *dev, Error **errp) /* The CPU mp-affinity property is in MPIDR register format; squash * the affinity bytes into 32 bits as the GICR_TYPER has them. */ - cpu_affid = (cpu_affid & 0xFF00000000ULL >> 8) | (cpu_affid & 0xFFFFFF); + cpu_affid = ((cpu_affid & 0xFF00000000ULL) >> 8) | + (cpu_affid & 0xFFFFFF); s->cpu[i].gicr_typer = (cpu_affid << 32) | (1 << 24) | (i << 8) | -- 2.7.4