Message ID | 20180119145756.7629-4-luc.michel@greensocs.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=greensocs.com header.i=@greensocs.com header.b="7a9JZIa8"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=greensocs.com header.i=@greensocs.com header.b="tSpuIPYz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=greensocs.com header.i=@greensocs.com header.b="tSpuIPYz"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zNS140DD8z9s7F for <incoming@patchwork.ozlabs.org>; Sat, 20 Jan 2018 04:07:04 +1100 (AEDT) Received: from localhost ([::1]:59870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1eca86-0000MF-14 for incoming@patchwork.ozlabs.org; Fri, 19 Jan 2018 12:07:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <luc.michel@greensocs.com>) id 1ecY7W-0002pF-AG for qemu-devel@nongnu.org; Fri, 19 Jan 2018 09:58:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <luc.michel@greensocs.com>) id 1ecY7V-0003mY-Ej for qemu-devel@nongnu.org; Fri, 19 Jan 2018 09:58:18 -0500 Received: from greensocs.com ([193.104.36.180]:39271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <luc.michel@greensocs.com>) id 1ecY7Q-0003iJ-07; Fri, 19 Jan 2018 09:58:12 -0500 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id E0338319FD9; Fri, 19 Jan 2018 15:58:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1516373882; bh=v+8I3H1qOqPd2WU9LWyfosRG0vDqmGje0yEI+Fsyyg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=7a9JZIa8ayVlAqcYbgJU2tVEH293HQOLYeKYyg27d+BCLrnx6BNDo+r8gI3MMllf6 Zoml2ETjJYhlFvW9Rc2PRzTWtldiF4/hZDBRr1x5JAqQf9ll+CLzDUnIpvpZ1U/ne4 Lc2I1w6ObaXPySbcxY7yCydUd1yH6+mK6OZp7qo8= X-Virus-Scanned: amavisd-new at greensocs.com Authentication-Results: gs-01.greensocs.com (amavisd-new); dkim=pass (1024-bit key) header.d=greensocs.com header.b=tSpuIPYz; dkim=pass (1024-bit key) header.d=greensocs.com header.b=tSpuIPYz Received: from greensocs.com ([127.0.0.1]) by localhost (gs-01.greensocs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gFFmqKY4nc5C; Fri, 19 Jan 2018 15:58:01 +0100 (CET) Received: by greensocs.com (Postfix, from userid 998) id 56E995E2F8; Fri, 19 Jan 2018 15:58:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1516373880; bh=v+8I3H1qOqPd2WU9LWyfosRG0vDqmGje0yEI+Fsyyg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tSpuIPYzP4aWXyPfcXrerPQtWwfMfEF6crRt9Ie1vgtOjTwhNkM6RUdZrG0RfovLk w85GBNHGTpBfRWm2KJLmRpE47vDM2hP/6mwx6wvG7t6uIUhayVSEqSp3Tg3/Hvw06R C3zkx9LxvbwXlgGiLVcaknbVieDAevb08YgIyews= Received: from michell-laptop.hive.antfield.fr (tima-dhcp-h14.imag.fr [147.171.132.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: luc.michel@greensocs.com) by greensocs.com (Postfix) with ESMTPSA id 109C9319FC8; Fri, 19 Jan 2018 15:58:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1516373880; bh=v+8I3H1qOqPd2WU9LWyfosRG0vDqmGje0yEI+Fsyyg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tSpuIPYzP4aWXyPfcXrerPQtWwfMfEF6crRt9Ie1vgtOjTwhNkM6RUdZrG0RfovLk w85GBNHGTpBfRWm2KJLmRpE47vDM2hP/6mwx6wvG7t6uIUhayVSEqSp3Tg3/Hvw06R C3zkx9LxvbwXlgGiLVcaknbVieDAevb08YgIyews= From: luc.michel@greensocs.com To: qemu-devel@nongnu.org Date: Fri, 19 Jan 2018 15:57:54 +0100 Message-Id: <20180119145756.7629-4-luc.michel@greensocs.com> X-Mailer: git-send-email 2.16.0 In-Reply-To: <20180119145756.7629-1-luc.michel@greensocs.com> References: <20180119145756.7629-1-luc.michel@greensocs.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 193.104.36.180 X-Mailman-Approved-At: Fri, 19 Jan 2018 11:42:55 -0500 Subject: [Qemu-devel] [PATCH 2/4] hw/intc/arm_gic: Fix C_RPR value on idle priority X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: "Edgar E . Iglesias" <edgar.iglesias@xilinx.com>, Peter Maydell <peter.maydell@linaro.org>, Alistair Francis <alistair.francis@xilinx.com>, qemu-arm@nongnu.org, Luc MICHEL <luc.michel@git.antfield.fr> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
arm_gic: Various fixes
|
expand
|
diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index dad383ea12..713de3084f 100644 --- a/hw/intc/arm_gic.c +++ b/hw/intc/arm_gic.c @@ -504,6 +504,11 @@ static void gic_set_cpu_control(GICState *s, int cpu, uint32_t value, static uint8_t gic_get_running_priority(GICState *s, int cpu, MemTxAttrs attrs) { + if ((s->revision != REV_11MPCORE) && (s->running_priority[cpu] > 0xff)) { + /* Idle priority */ + return 0xff; + } + if (s->security_extn && !attrs.secure) { if (s->running_priority[cpu] & 0x80) { /* Running priority in upper half of range: return the Non-secure