Message ID | 20210920141947.5537-7-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | 9cee1efe92d343b2d729cb074d4d30571bbd1e54 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp2119053jao; Mon, 20 Sep 2021 07:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwBYlxkZpvzfca1k6FKUy60mbec1PzRLdTEQNf/DNBpfrUK0xE91SG7sxw1QToOAhS6/Ex X-Received: by 2002:a05:622a:2d0:: with SMTP id a16mr23891791qtx.410.1632148717678; Mon, 20 Sep 2021 07:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632148717; cv=none; d=google.com; s=arc-20160816; b=DZ/+/DgtKSZIiwZ6GshrlNiSuHUtAEHgT35KOjypqy+jW0mqzELMsofFfyyOGvzjKJ nFZX2L43xZKIShmJAk3GI8HwzFjtRlOylsAEPtBBtqU03Y8DumYC9TaVcA90Nllkb4lt PCCNMDz5S/fVDGXCBI+93S8filiczkevrnVl6U7fmm6aKuUmNbPlD8le6bLpn2GbOmFr T+3IBGpgd592OavYQUlcE4ENzaUiBgpgvAV88zhtgZW2GJFhyfcea6fN9y4Kd5ftgDip z4nFNIwNgZ/oW/OTFoaNXa5FerMO1vH6JFenP/75p9N5pMOisAsxJooBxKaDDztr9n6i 8FcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=habRdyVLAcbkdz94dGzbRaHOGiITwOvcI0H5zqLes+M=; b=HuHOi+qc7RAylGvfE4GfLcTiZtqGMHeymdWP50A/x3xBMzeUYn85Yi3d5wF0gWNJ/C eF40Is/BeBHaAyT60PKO+/FUntihUW3qDchIpBlrdIduhy75LKi9fyingJupOoEmbFh3 RYaUoz2VzEN7w3GpJBhyKQp7JN4HkJyfzO4MjVfEAx8Ey1B7rlGVBxZ+43PpB8stD6Pn zLxcG5OoNtEuAX4sLNhkgsw/GbD9M6Ln3ggsR8D6xeTop4K+VBXX738JkXWe5gKla0bl J4VF2GqcQt/yw/u8ZmnYEFy8DzJCKzYqL4pE4f7gYAEHYqdw+PHTFsS+8mWvpXObb2gO qe/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LAXhi+fQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f4si7068515qkp.362.2021.09.20.07.38.37 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Sep 2021 07:38:37 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LAXhi+fQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1mSKRJ-00058B-5m for patch@linaro.org; Mon, 20 Sep 2021 10:38:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1mSK9S-0002iv-Uj for qemu-devel@nongnu.org; Mon, 20 Sep 2021 10:20:10 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:42993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1mSK9D-0000nQ-PW for qemu-devel@nongnu.org; Mon, 20 Sep 2021 10:20:09 -0400 Received: by mail-wr1-x436.google.com with SMTP id q11so30193545wrr.9 for <qemu-devel@nongnu.org>; Mon, 20 Sep 2021 07:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=habRdyVLAcbkdz94dGzbRaHOGiITwOvcI0H5zqLes+M=; b=LAXhi+fQp1QEnJfqWf+4nrVDwzBSr/p15ugm7iVM/8DSdtSDxLAohIJhCQ4GRKuuAu UY3OT2bzSI6aRtXVmG2fiBD8bWUWlH2WJTskW7erxBPUChpbBGfSQAYZArql4VcG7aod wKGo1fF6D5b58ide8aYg+NYRyiLRyfrEOTEDb65yl/eB0Qm3bQpotkOuD/ZltIDioiXn 8uWtUlyvU/UQIGKI8dO0c7m5osK05Ly8xDpKTgKB5lFEv0h1ORt1+QzXP3tWRIiUOFG9 8VEGyLLdduhYoJH4JAEKCgMzT/Ghl6oLLzdOZ84pkYit5PZtgnVOyVW+/eClCQZVVa62 vvuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=habRdyVLAcbkdz94dGzbRaHOGiITwOvcI0H5zqLes+M=; b=S/0aHGoxM+n4VHTo15fyLp5YyqJak2M4Mct27uNizcGmA5HI5mEC971CSSvckv0xEp o5yuH+9hzIl8JmYwiAK42RfpZswwlEKhN/7NQ0SaXdXIhaCGO/ahNdm2a6ZA9pT7dtj7 7a/HgJwwfdtd+RvF77Cm/fjRRmIPXvzl/13LGdv8PU62nCOYamWMDwRoCqZRNysPDg1B irNvA++ocxVlBJDQeb7zx2k4juX2RDSYeq28Fb1BagRXl/g7DiCrca7pFGHgomxf9Xwr ph8mu08sIBgz2wcIRalHXT8DCrNsFu1OqmuRYrL+yYWfL8uQvrevdiEbePqepKJ/BHsG RqvQ== X-Gm-Message-State: AOAM533H/jrjbkq1znFi3pzmUB0IoziSWtqQN9JVh2i2nVCd+puW/66Z S+aqPnQL9cmWq2sfMl29lxV3hjz94gE+iQ== X-Received: by 2002:a05:600c:4c09:: with SMTP id d9mr16435406wmp.194.1632147593480; Mon, 20 Sep 2021 07:19:53 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id n17sm16229693wrp.17.2021.09.20.07.19.52 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 07:19:53 -0700 (PDT) From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL 06/27] hw/intc: Set GIC maintenance interrupt level to only 0 or 1 Date: Mon, 20 Sep 2021 15:19:26 +0100 Message-Id: <20210920141947.5537-7-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210920141947.5537-1-peter.maydell@linaro.org> References: <20210920141947.5537-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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: <https://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> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target-arm queue
|
expand
|
diff --git a/hw/intc/arm_gicv3_cpuif.c b/hw/intc/arm_gicv3_cpuif.c index 462a35f66eb..3fe5de8ad7d 100644 --- a/hw/intc/arm_gicv3_cpuif.c +++ b/hw/intc/arm_gicv3_cpuif.c @@ -417,8 +417,9 @@ static void gicv3_cpuif_virt_update(GICv3CPUState *cs) } } - if (cs->ich_hcr_el2 & ICH_HCR_EL2_EN) { - maintlevel = maintenance_interrupt_state(cs); + if ((cs->ich_hcr_el2 & ICH_HCR_EL2_EN) && + maintenance_interrupt_state(cs) != 0) { + maintlevel = 1; } trace_gicv3_cpuif_virt_set_irqs(gicv3_redist_affid(cs), fiqlevel,