diff mbox

target/ppc: Remove unused POWERPC_FAMILY(POWER)

Message ID 1485255307-11799-1-git-send-email-thuth@redhat.com
State New
Headers show

Commit Message

Thomas Huth Jan. 24, 2017, 10:55 a.m. UTC
We do not support POWER1 CPUs in QEMU, so it does not make sense
to keep this stub around.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 target/ppc/translate_init.c | 22 ----------------------
 1 file changed, 22 deletions(-)

Comments

David Gibson Jan. 31, 2017, 2:46 a.m. UTC | #1
On Tue, Jan 24, 2017 at 11:55:07AM +0100, Thomas Huth wrote:
> We do not support POWER1 CPUs in QEMU, so it does not make sense
> to keep this stub around.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Merged to ppc-for-2.9, thanks.

> ---
>  target/ppc/translate_init.c | 22 ----------------------
>  1 file changed, 22 deletions(-)
> 
> diff --git a/target/ppc/translate_init.c b/target/ppc/translate_init.c
> index 19ef250..70333c5 100644
> --- a/target/ppc/translate_init.c
> +++ b/target/ppc/translate_init.c
> @@ -5217,28 +5217,6 @@ POWERPC_FAMILY(e5500)(ObjectClass *oc, void *data)
>  
>  /* Non-embedded PowerPC                                                      */
>  
> -/* POWER : same as 601, without mfmsr, mfsr                                  */
> -POWERPC_FAMILY(POWER)(ObjectClass *oc, void *data)
> -{
> -    DeviceClass *dc = DEVICE_CLASS(oc);
> -    PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
> -
> -    dc->desc = "POWER";
> -    /* pcc->insns_flags = XXX_TODO; */
> -    /* POWER RSC (from RAD6000) */
> -    pcc->msr_mask = (1ull << MSR_EE) |
> -                    (1ull << MSR_PR) |
> -                    (1ull << MSR_FP) |
> -                    (1ull << MSR_ME) |
> -                    (1ull << MSR_FE0) |
> -                    (1ull << MSR_SE) |
> -                    (1ull << MSR_DE) |
> -                    (1ull << MSR_AL) |
> -                    (1ull << MSR_EP) |
> -                    (1ull << MSR_IR) |
> -                    (1ull << MSR_DR);
> -}
> -
>  #define POWERPC_MSRR_601     (0x0000000000001040ULL)
>  
>  static void init_proc_601 (CPUPPCState *env)
diff mbox

Patch

diff --git a/target/ppc/translate_init.c b/target/ppc/translate_init.c
index 19ef250..70333c5 100644
--- a/target/ppc/translate_init.c
+++ b/target/ppc/translate_init.c
@@ -5217,28 +5217,6 @@  POWERPC_FAMILY(e5500)(ObjectClass *oc, void *data)
 
 /* Non-embedded PowerPC                                                      */
 
-/* POWER : same as 601, without mfmsr, mfsr                                  */
-POWERPC_FAMILY(POWER)(ObjectClass *oc, void *data)
-{
-    DeviceClass *dc = DEVICE_CLASS(oc);
-    PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
-
-    dc->desc = "POWER";
-    /* pcc->insns_flags = XXX_TODO; */
-    /* POWER RSC (from RAD6000) */
-    pcc->msr_mask = (1ull << MSR_EE) |
-                    (1ull << MSR_PR) |
-                    (1ull << MSR_FP) |
-                    (1ull << MSR_ME) |
-                    (1ull << MSR_FE0) |
-                    (1ull << MSR_SE) |
-                    (1ull << MSR_DE) |
-                    (1ull << MSR_AL) |
-                    (1ull << MSR_EP) |
-                    (1ull << MSR_IR) |
-                    (1ull << MSR_DR);
-}
-
 #define POWERPC_MSRR_601     (0x0000000000001040ULL)
 
 static void init_proc_601 (CPUPPCState *env)