Received: from eggs.gnu.org ([2001:4830:134:3::10]:56041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsAfD-0005X3-K8 for qemu-devel@nongnu.org; Wed, 04 Jun 2014 08:51:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsAf1-0002nB-C7 for qemu-devel@nongnu.org; Wed, 04 Jun 2014 08:51:31 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:35018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsAf0-0002lT-8H for qemu-devel@nongnu.org; Wed, 04 Jun 2014 08:51:19 -0400 Received: from /spool/local by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Jun 2014 22:51:16 +1000 From: Alexey Kardashevskiy Date: Wed, 4 Jun 2014 22:50:46 +1000 Message-Id: <1401886265-6589-12-git-send-email-aik@ozlabs.ru> In-Reply-To: <1401886265-6589-1-git-send-email-aik@ozlabs.ru> References: <1401886265-6589-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v5 11/30] target-ppc: Remove check_pow_970FX List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Tom Musta , qemu-ppc@nongnu.org, Alexander Graf , Greg Kurz After merging 970s into one class, check_pow_970() is used for all of them. Since POWER5+ is no different in the matter of supported power modes, let's use the same check_pow() callback for POWER5+ too, Signed-off-by: Alexey Kardashevskiy Reviewed-by: Tom Musta --- target-ppc/translate_init.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index da25d7c..055c726 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -7591,14 +7591,6 @@ POWERPC_FAMILY(970)(ObjectClass *oc, void *data) pcc->l1_icache_size = 0x10000; } -static int check_pow_970FX (CPUPPCState *env) -{ - if (env->spr[SPR_HID0] & 0x00600000) - return 1; - - return 0; -} - static void init_proc_power5plus(CPUPPCState *env) { init_proc_book3s_64(env, BOOK3S_CPU_POWER5PLUS); @@ -7612,7 +7604,7 @@ POWERPC_FAMILY(POWER5P)(ObjectClass *oc, void *data) dc->fw_name = "PowerPC,POWER5"; dc->desc = "POWER5+"; pcc->init_proc = init_proc_power5plus; - pcc->check_pow = check_pow_970FX; + pcc->check_pow = check_pow_970; pcc->insns_flags = PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | -- 2.0.0