From nobody Tue Feb 10 02:55:37 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1625807982141322.98056247378247; Thu, 8 Jul 2021 22:19:42 -0700 (PDT) Received: from localhost ([::1]:41462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1ivM-0003wF-KT for importer@patchew.org; Fri, 09 Jul 2021 01:19:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1itY-0000rO-4b; Fri, 09 Jul 2021 01:17:48 -0400 Received: from bilbo.ozlabs.org ([2401:3900:2:1::2]:54881 helo=ozlabs.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1itV-0001pG-HF; Fri, 09 Jul 2021 01:17:47 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 4GLhHc6kZcz9sWS; Fri, 9 Jul 2021 15:17:32 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1625807852; bh=gXUuEtCR4TYTn8HM+OXKsTlWBnv4uXGKfvHWjycKEmM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bj2Fx91Tws2Ih2gf819nhQp6jCkv+FOaJNnGiTh6CYvvsWbSGFCxpa1TNBYG1m5bC iEs8lmgR0PcYTPrqFzhv9bYjsR1dyG4512byo02tYs8Y+7J0SD38mekM8vNc4yIrbv deYqbHOIrOn4m6A+eflnWDiHvrRxUW4PtqksjmoM= From: David Gibson To: peter.maydell@linaro.org, groug@kaod.org Subject: [PULL 02/33] target/ppc: Drop PowerPCCPUClass::interrupts_big_endian() Date: Fri, 9 Jul 2021 15:16:57 +1000 Message-Id: <20210709051728.170203-3-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210709051728.170203-1-david@gibson.dropbear.id.au> References: <20210709051728.170203-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 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=2401:3900:2:1::2; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, SPF_HELO_PASS=-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: , Cc: aik@ozlabs.ru, David Gibson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Fabiano Rosas Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1625807985110100003 Content-Type: text/plain; charset="utf-8" From: Greg Kurz This isn't used anymore. Signed-off-by: Greg Kurz Message-Id: <20210622140926.677618-3-groug@kaod.org> Reviewed-by: Fabiano Rosas Signed-off-by: David Gibson --- target/ppc/cpu-qom.h | 1 - target/ppc/cpu_init.c | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/target/ppc/cpu-qom.h b/target/ppc/cpu-qom.h index 06b6571bc9..7b424e3cb0 100644 --- a/target/ppc/cpu-qom.h +++ b/target/ppc/cpu-qom.h @@ -199,7 +199,6 @@ struct PowerPCCPUClass { void (*init_proc)(CPUPPCState *env); int (*check_pow)(CPUPPCState *env); int (*handle_mmu_fault)(PowerPCCPU *cpu, vaddr eaddr, int rwx, int mmu= _idx); - bool (*interrupts_big_endian)(PowerPCCPU *cpu); }; =20 #ifndef CONFIG_USER_ONLY diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index d0411e7302..1a22aef874 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -2666,18 +2666,6 @@ static int check_pow_hid0_74xx(CPUPPCState *env) return 0; } =20 -static bool ppc_cpu_interrupts_big_endian_always(PowerPCCPU *cpu) -{ - return true; -} - -#ifdef TARGET_PPC64 -static bool ppc_cpu_interrupts_big_endian_lpcr(PowerPCCPU *cpu) -{ - return !(cpu->env.spr[SPR_LPCR] & LPCR_ILE); -} -#endif - /*************************************************************************= ****/ /* PowerPC implementations definitions = */ =20 @@ -7740,7 +7728,6 @@ POWERPC_FAMILY(POWER7)(ObjectClass *oc, void *data) POWERPC_FLAG_VSX; pcc->l1_dcache_size =3D 0x8000; pcc->l1_icache_size =3D 0x8000; - pcc->interrupts_big_endian =3D ppc_cpu_interrupts_big_endian_lpcr; } =20 static void init_proc_POWER8(CPUPPCState *env) @@ -7918,7 +7905,6 @@ POWERPC_FAMILY(POWER8)(ObjectClass *oc, void *data) POWERPC_FLAG_VSX | POWERPC_FLAG_TM; pcc->l1_dcache_size =3D 0x8000; pcc->l1_icache_size =3D 0x8000; - pcc->interrupts_big_endian =3D ppc_cpu_interrupts_big_endian_lpcr; } =20 #ifdef CONFIG_SOFTMMU @@ -8136,7 +8122,6 @@ POWERPC_FAMILY(POWER9)(ObjectClass *oc, void *data) POWERPC_FLAG_VSX | POWERPC_FLAG_TM | POWERPC_FLAG_SCV; pcc->l1_dcache_size =3D 0x8000; pcc->l1_icache_size =3D 0x8000; - pcc->interrupts_big_endian =3D ppc_cpu_interrupts_big_endian_lpcr; } =20 #ifdef CONFIG_SOFTMMU @@ -8347,7 +8332,6 @@ POWERPC_FAMILY(POWER10)(ObjectClass *oc, void *data) POWERPC_FLAG_VSX | POWERPC_FLAG_TM | POWERPC_FLAG_SCV; pcc->l1_dcache_size =3D 0x8000; pcc->l1_icache_size =3D 0x8000; - pcc->interrupts_big_endian =3D ppc_cpu_interrupts_big_endian_lpcr; } =20 #if !defined(CONFIG_USER_ONLY) @@ -9094,7 +9078,6 @@ static void ppc_cpu_class_init(ObjectClass *oc, void = *data) device_class_set_parent_unrealize(dc, ppc_cpu_unrealize, &pcc->parent_unrealize); pcc->pvr_match =3D ppc_pvr_match_default; - pcc->interrupts_big_endian =3D ppc_cpu_interrupts_big_endian_always; device_class_set_props(dc, ppc_cpu_properties); =20 device_class_set_parent_reset(dc, ppc_cpu_reset, &pcc->parent_reset); --=20 2.31.1