Message ID | 20231212162935.42910-21-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4c83:0:b0:333:3a04:f257 with SMTP id z3csp2011187wrs; Tue, 12 Dec 2023 08:32:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTqhRGb+NUjrrqV+C8UuwRlAwtO57OYRdZEnrso+GkdTAYZ3vE+SOlP2JnwWf0M8qFWh02 X-Received: by 2002:a05:6359:223:b0:170:6c3b:4f7b with SMTP id ej35-20020a056359022300b001706c3b4f7bmr7314707rwb.20.1702398770647; Tue, 12 Dec 2023 08:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702398770; cv=none; d=google.com; s=arc-20160816; b=tVIWG88eC85R3Q+WVOCzNz8APRE+odwBc1sOk8XphH+vH1HPW4qTYs5jKtT3CFyZMS Nn/UwysVFjSvdpTh67N7Ndtt8awPd1tCgDPai+AvApI/zmkk25gWIiQBuLkcA1tKFZQm 3dzdc5e7Cf249/CLe81NAePWdcrjGWlo6AconaUwWHxf4U5+30jPkbAtQ7IqCoAk/H92 namfYaGJ4gPNxVxMUnVQGuQMjJ0quymGnIKlOIKrAsXeNHborz3U50FQZlO4NXUwVdcn OzlyWRxdZR4/MC0yTItn7G5ArzX99pzqbBxdyEGG/2tvAoClpcGFgGs5w2BAFMpk4T0f iJ+w== 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:cc:to :from:dkim-signature; bh=LN5LIzaAXoHQp7eEvorlIZRES+1O6/1DEdlrH2EDvwo=; fh=CkupYgn1Qmdh7jizui9HJgGegpqbRR5NXz1VyjRE1Hs=; b=YKdfgyBGENvNSzJqgxD9I8v6dYeaXfM3HvzNTLBMiGYFY7lrs8G9q0Uyhv1hAVevSX CobPYtEPXBkFAOG53b/k6YE9XsKQ5/0VjPHmWaWIAjQBlQobqd1C8tWiZ1cMGE+52HvR qjISk4EPEpStVmePG8qyd5myRkL4udzYPlQ1y9GrmdNHyP6UJpzy6OKJtIVQ2D29TjmY mzSbBCrvox4HiTTaYc0af8WCbIl0ya+U1/LzbIBCDoqCWWur34jmXMnGYpgIZTLl6new SpMSAItaLlLQB8CbOUJ/ERuJSC724ST1ZWGNNN0MdvWsb9YNhBjvlbMqJdQdfSrztaeB yKNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="nGEb/ixs"; 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 i9-20020a05620a248900b0077f6791999csi7191421qkn.392.2023.12.12.08.32.50 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2023 08:32:50 -0800 (PST) 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="nGEb/ixs"; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1rD5gY-0007pP-OC; Tue, 12 Dec 2023 11:32:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1rD5gC-0006cb-PW for qemu-devel@nongnu.org; Tue, 12 Dec 2023 11:32:22 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1rD5g0-0007hx-8V for qemu-devel@nongnu.org; Tue, 12 Dec 2023 11:32:20 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40c3f68b79aso37747755e9.0 for <qemu-devel@nongnu.org>; Tue, 12 Dec 2023 08:32:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702398726; x=1703003526; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LN5LIzaAXoHQp7eEvorlIZRES+1O6/1DEdlrH2EDvwo=; b=nGEb/ixsUYayrjlw/rxpvax1CMkAzRqKsQmGrG+qqvjALgykOziFSoQy3CtejGPgkz +9fk11KbCkU4KLCeHxjD7UEySHMxDFq51fK34DPosuSeR+stLXw/mpk/V5YPF8vDJb5i 2AbR/Nn4dCOslGNnTx14Mm0uQgziDI/NKpEIfntKhxyHgyNFuY2XLiKz93JNFdjMlWs+ Bmr6fkp1gJN9MDxONhD7wtY+F1nSduHE91SCWXk9DEw3xI382oxvzmBIhfZ+R+lMBok3 88XFu/U0ic7PHQiPULL9Ile/jkntpQ09OiH5bZXJTpBma0sRysa6ic1xUbc1AMCyTp// 477Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702398726; x=1703003526; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LN5LIzaAXoHQp7eEvorlIZRES+1O6/1DEdlrH2EDvwo=; b=GdJ7nJSptswvJl/2rLpxCL/O8fl5TNVjoGmL09+BuNFmKztqcRpAI4ZEOp/k1gF75I rOw/YUYrPXAxeZwtxxpfdb3HUs/V5qlZeoc28v5F8LEs8hX9waDXGwkMkc0uIHqZVL12 KVXHeCj7SU0q8xMxUbY4bEteKWNEqrCCmE6zqJnxaKB2KXzBmYdyccUHrU00K9g9XSTL zKuF71MYBR2sisWRcpu9M+qsbQXOBuMxKwELGeu4ec9KPRjEvtTis+xlnU1QvZb2aNJc 6nDFBwIzfKAVkqeAP0C440JF3ChTspMbdWIzsKHbzRNnv6rYNS8zOPLQtzilYQEos65Y cHJg== X-Gm-Message-State: AOJu0YxtzNewEGnhyzlDBJGBNiHGstzsQ+AYKfX4AKiwYEMuiT6YGjxD IzbzCBd9K+oOdLfu4H+ujOer5QYr66EkXWqJh5c= X-Received: by 2002:a05:600c:6997:b0:40b:5e59:ccb9 with SMTP id fp23-20020a05600c699700b0040b5e59ccb9mr3593558wmb.154.1702398726582; Tue, 12 Dec 2023 08:32:06 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id uh17-20020a170906b39100b00a1d5063b01csm6483712ejc.190.2023.12.12.08.32.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 12 Dec 2023 08:32:06 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Paolo Bonzini <pbonzini@redhat.com>, Tyrone Ting <kfting@nuvoton.com>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Manos Pitsidianakis <manos.pitsidianakis@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, Joel Stanley <joel@jms.id.au>, Alistair Francis <alistair@alistair23.me>, Anton Johansson <anjo@rev.ng>, Andrey Smirnov <andrew.smirnov@gmail.com>, Peter Maydell <peter.maydell@linaro.org>, Hao Wu <wuhaotsh@google.com>, =?utf-8?q?C=C3=A9dric_Le_Goater?= <clg@kaod.org>, Jean-Christophe Dubois <jcd@tribudubois.net>, Igor Mitsyanko <i.mitsyanko@gmail.com>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Andrew Jeffery <andrew@codeconstruct.com.au>, Rob Herring <robh@kernel.org>, qemu-arm@nongnu.org, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH 20/33] hw/cpu/arm: Consolidate check on max GIC spi supported Date: Tue, 12 Dec 2023 17:29:20 +0100 Message-ID: <20231212162935.42910-21-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231212162935.42910-1-philmd@linaro.org> References: <20231212162935.42910-1-philmd@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::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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-bounces+patch=linaro.org@nongnu.org |
Series |
hw/cpu/arm: Remove one use of qemu_get_cpu() in A7/A15 MPCore priv
|
expand
|
diff --git a/hw/cpu/cortex_mpcore.c b/hw/cpu/cortex_mpcore.c index c9ba254818..75324268fa 100644 --- a/hw/cpu/cortex_mpcore.c +++ b/hw/cpu/cortex_mpcore.c @@ -43,6 +43,13 @@ static void cortex_mpcore_priv_realize(DeviceState *dev, Error **errp) CortexMPPrivClass *k = CORTEX_MPCORE_PRIV_GET_CLASS(dev); DeviceState *gicdev = DEVICE(&s->gic); + if (s->gic_spi_num > k->gic_spi_max) { + error_setg(errp, + "At most %u GIC SPI are supported (requested %u)", + k->gic_spi_max, s->gic_spi_num); + return; + } + qdev_prop_set_uint32(gicdev, "num-cpu", s->num_cores); qdev_prop_set_uint32(gicdev, "num-irq", s->gic_spi_num); if (k->gic_priority_bits) {
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/cpu/cortex_mpcore.c | 7 +++++++ 1 file changed, 7 insertions(+)