qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v3 11/24] target-ppc: Remove check_pow_970FX


From: Alexey Kardashevskiy
Subject: [Qemu-devel] [PATCH v3 11/24] target-ppc: Remove check_pow_970FX
Date: Tue, 27 May 2014 20:37:23 +1000

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 <address@hidden>
---
 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 5556b02..703ad16 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7582,14 +7582,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_POWER(env, BOOK3S_CPU_POWER5PLUS);
@@ -7603,7 +7595,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 |
-- 
1.8.4.rc4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]