From nobody Wed Apr 16 08:11:27 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1613051119; cv=none; d=zohomail.com; s=zohoarc; b=keV09tvffbfC48s1BVUECYA97kaHLVMi5okpIeflggWfjdWFM2k6O01p4n5Zzxu+J8K22K7GEm0Mpx9bQtFeuUhJmAkiq7p5XWi2GFzO+eP+N+96+JB7HpR34I8Q0csYrBIeUNKAyRx10/qkMDR8giJ//I3DfNZQ6Y1T4GUwjgk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613051119; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ixe3xEWCLqFO6/uGt+eEF2dyjdPefbmj6m2Mbhi11Aw=; b=bRoS5FHyk1VU8VW5nK9WPgwPRZp0YREjGzkj6wP4rg2Evw/ruGnEGOhB9hVW7k7rhVl+mHqZSzCwNZBEfBXbN4HvllkRf+BijrIC5/cLVkmcE6kFgkxJEz8QupkbECjqRPkDcGq071LJPF8MFkAdpK2dUBdbNLL+1BB1aHJtylg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1613051118872742.7859140578913; Thu, 11 Feb 2021 05:45:18 -0800 (PST) Received: from localhost ([::1]:53802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lACHV-0005gL-LF for importer@patchew.org; Thu, 11 Feb 2021 08:45:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lABZZ-0000Gk-6X for qemu-devel@nongnu.org; Thu, 11 Feb 2021 07:59:53 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:55309) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lABZJ-00008V-Di for qemu-devel@nongnu.org; Thu, 11 Feb 2021 07:59:52 -0500 Received: by mail-wm1-x32a.google.com with SMTP id o15so3687449wmq.5 for ; Thu, 11 Feb 2021 04:59:37 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id g15sm4955716wrx.1.2021.02.11.04.59.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 04:59:35 -0800 (PST) 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=ixe3xEWCLqFO6/uGt+eEF2dyjdPefbmj6m2Mbhi11Aw=; b=AeZvTcMGHb5fzCkW5DySJRIJzub/Zj0F29idykz90LbYya9B3zTuG7CcAp4ROSXOg8 CsGb25HnlbqSPqFAKS/Hd7r51AuHragMHIBLd5IsQZhqyUHVcgqcddwdr63SI+orY8FI hefQNySdZFOZ6AClwfVDQ9sBA/mMTNuq/0Oxnys5RF3cfQSuYaaKJEa8m64z2lnovsAv A+uBoUk6GvNFJ0B6mVrPPsumHp2ylVruTH1MJLRDyDgBAmJfXcBHT249D9lb/4RAPOxS D0MKNljqMVTW/qC+TzagjIAH0pqCCpGpGELm7DYK6hwqC86RcyIgk378WotKMYeswJrj xzyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ixe3xEWCLqFO6/uGt+eEF2dyjdPefbmj6m2Mbhi11Aw=; b=qJPJ8Yrz+tpc52riwCHjs2MLgAR7k/Mvqm618I6hPj0P31hHn0WyudYMvBhGgIovjK K9Gam6DY3Vqhb0I8RgSP8mDh3zY7plWeuuxqlnxFRdjez7nGAVLIrO5f1f73J9VuMc9T O2KQ4eu1hM34Bic501Cmnwj8PuylCe/nQKerd/GucoG1HXMIFl6IFkyLsoPuUD6QarCU j/2ztxIvazQjpssXnIxZrUuF97QDGgnAPmuDv2q+zusT8UXP39nlm9MyzIKsuA2Sypfx 0KIfSwk8I6nPpIrtrBFBB0k7c85UW3yNfJL6XOPl9UZeUhFtRClZSw3r+qRV7zmLGG7r cQYw== X-Gm-Message-State: AOAM53085rfHTUSeWVMoGfRjXn+wEcNfxn6KT6xTkN8nY0hHFd7Bhuu9 dR/QFMh8lm0MQPbMOflC6fCDsqbTS4HoCw== X-Google-Smtp-Source: ABdhPJxRQ0BfEHbkmkbR7XhtkrgMNl410q+QDpwycZ07PV3tB1er/aKT2tWj0GEF3anRcEq0dOnYmA== X-Received: by 2002:a1c:6289:: with SMTP id w131mr5263405wmb.0.1613048376297; Thu, 11 Feb 2021 04:59:36 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 44/45] hw/arm: versal: Use nr_apu_cpus in favor of hard coding 2 Date: Thu, 11 Feb 2021 12:58:59 +0000 Message-Id: <20210211125900.22777-45-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210211125900.22777-1-peter.maydell@linaro.org> References: <20210211125900.22777-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32a.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, 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: "Edgar E. Iglesias" Use nr_apu_cpus in favor of hard coding 2. Signed-off-by: Edgar E. Iglesias Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Luc Michel Message-id: 20210210142048.3125878-2-edgar.iglesias@gmail.com Signed-off-by: Peter Maydell --- hw/arm/xlnx-versal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/xlnx-versal.c b/hw/arm/xlnx-versal.c index b0777166e89..628e77ef660 100644 --- a/hw/arm/xlnx-versal.c +++ b/hw/arm/xlnx-versal.c @@ -67,10 +67,10 @@ static void versal_create_apu_gic(Versal *s, qemu_irq *= pic) gicbusdev =3D SYS_BUS_DEVICE(&s->fpd.apu.gic); gicdev =3D DEVICE(&s->fpd.apu.gic); qdev_prop_set_uint32(gicdev, "revision", 3); - qdev_prop_set_uint32(gicdev, "num-cpu", 2); + qdev_prop_set_uint32(gicdev, "num-cpu", nr_apu_cpus); qdev_prop_set_uint32(gicdev, "num-irq", XLNX_VERSAL_NR_IRQS + 32); qdev_prop_set_uint32(gicdev, "len-redist-region-count", 1); - qdev_prop_set_uint32(gicdev, "redist-region-count[0]", 2); + qdev_prop_set_uint32(gicdev, "redist-region-count[0]", nr_apu_cpus); qdev_prop_set_bit(gicdev, "has-security-extensions", true); =20 sysbus_realize(SYS_BUS_DEVICE(&s->fpd.apu.gic), &error_fatal); --=20 2.20.1