From nobody Mon Feb 9 17:36:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1571916204; cv=none; d=zoho.com; s=zohoarc; b=LDSrlqbuiXVTejo89NQH0Kb2Td+si3PPjreyjbZ/GyB/5LKtbdJVEn8c1fjTHTfn5mCPIObOZpVeeAf9futq/xiCByjYkjnF937Y3pZjrgd88q9CxuZABucLnD15Tuf39v5EphFcB8WnDsz3kGmyAJPfEZimUBT9MNTyGbD/0TU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571916204; h=Content-Type:Content-Transfer-Encoding:Cc: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=a29cXSgRowo5vovIROrQGclagiN4ZiQmlUmM16isWRo=; b=K4ig2agaj8J7MshTAyJGZbCiNdIfZJzODSleJA5nhekjth9nv5/CekDrSoDQPIOaxkhovGHBeyxEBhGn0tPuocLEnv0SFPelO5ewvTZWG9bp0XViKoXqGejSDHD9J20xoLNF73v2LhzOBI0+5JrqK8DIpVV2U8i5oIf+k36kSDU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1571916204028831.514230108696; Thu, 24 Oct 2019 04:23:24 -0700 (PDT) Received: from localhost ([::1]:35478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNYuN-0004jg-Ug for importer@patchew.org; Thu, 24 Oct 2019 04:55:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37017) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNYKw-0005ei-EP for qemu-devel@nongnu.org; Thu, 24 Oct 2019 04:19:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNYKu-00062t-96 for qemu-devel@nongnu.org; Thu, 24 Oct 2019 04:19:14 -0400 Received: from bilbo.ozlabs.org ([2401:3900:2:1::2]:47887 helo=ozlabs.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iNYKs-0005Ih-Fc; Thu, 24 Oct 2019 04:19:12 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 46zKrc2Mh1z9sSJ; Thu, 24 Oct 2019 19:18:38 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1571905120; bh=tzJ+7MOt2gZTDZOt/gkdmDHnADHessDKG06YzqJyGLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YOp14rL+X7uTApnva66vvaTZ2/UKFKvzBAIste07UkMbyoTiM8YCi10ldkncFlYe0 FguJNFIJUC7/2H6fYNWertG7zvXqFF0qe2FqY4abt/eDlbjz5cMf5O6sKCsGIHGkF6 t+b1r2CBpuA8uvjKEoEKlGA6gIbGIzO4iWv0Zy9A= From: David Gibson To: peter.maydell@linaro.org Subject: [PULL 25/28] ppc/pnv: Add a PnvChip pointer to PnvCore Date: Thu, 24 Oct 2019 19:18:10 +1100 Message-Id: <20191024081813.2115-26-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191024081813.2115-1-david@gibson.dropbear.id.au> References: <20191024081813.2115-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 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: , Cc: lvivier@redhat.com, qemu-devel@nongnu.org, groug@kaod.org, qemu-ppc@nongnu.org, clg@kaod.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: C=C3=A9dric Le Goater We will use it to reset the interrupt presenter from the CPU reset handler. Signed-off-by: C=C3=A9dric Le Goater Reviewed-by: Greg Kurz Message-Id: <20191022163812.330-5-clg@kaod.org> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: David Gibson --- hw/ppc/pnv_core.c | 3 ++- include/hw/ppc/pnv_core.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/ppc/pnv_core.c b/hw/ppc/pnv_core.c index 9f981a4940..cc17bbfed8 100644 --- a/hw/ppc/pnv_core.c +++ b/hw/ppc/pnv_core.c @@ -222,6 +222,7 @@ static void pnv_core_realize(DeviceState *dev, Error **= errp) "required link 'chip' not found: "); return; } + pc->chip =3D PNV_CHIP(chip); =20 pc->threads =3D g_new(PowerPCCPU *, cc->nr_threads); for (i =3D 0; i < cc->nr_threads; i++) { @@ -243,7 +244,7 @@ static void pnv_core_realize(DeviceState *dev, Error **= errp) } =20 for (j =3D 0; j < cc->nr_threads; j++) { - pnv_realize_vcpu(pc->threads[j], PNV_CHIP(chip), &local_err); + pnv_realize_vcpu(pc->threads[j], pc->chip, &local_err); if (local_err) { goto err; } diff --git a/include/hw/ppc/pnv_core.h b/include/hw/ppc/pnv_core.h index bfbd2ec42a..55eee95104 100644 --- a/include/hw/ppc/pnv_core.h +++ b/include/hw/ppc/pnv_core.h @@ -31,6 +31,8 @@ #define PNV_CORE_GET_CLASS(obj) \ OBJECT_GET_CLASS(PnvCoreClass, (obj), TYPE_PNV_CORE) =20 +typedef struct PnvChip PnvChip; + typedef struct PnvCore { /*< private >*/ CPUCore parent_obj; @@ -38,6 +40,7 @@ typedef struct PnvCore { /*< public >*/ PowerPCCPU **threads; uint32_t pir; + PnvChip *chip; =20 MemoryRegion xscom_regs; } PnvCore; --=20 2.21.0