[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 13/66] target-ppc: Turn "ppc32" and "ppc64" CPUs into
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 13/66] target-ppc: Turn "ppc32" and "ppc64" CPUs into aliases |
Date: |
Fri, 8 Mar 2013 21:06:15 +0100 |
From: Andreas Färber <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
target-ppc/translate_init.c | 36 +++++-------------------------------
1 files changed, 5 insertions(+), 31 deletions(-)
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index fb0a366..86b5c91 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -6798,32 +6798,6 @@ static void init_proc_620 (CPUPPCState *env)
}
#endif /* defined (TARGET_PPC64) */
-/* Default 32 bits PowerPC target will be 604 */
-#define CPU_POWERPC_PPC32 CPU_POWERPC_604
-#define POWERPC_INSNS_PPC32 POWERPC_INSNS_604
-#define POWERPC_INSNS2_PPC32 POWERPC_INSNS2_604
-#define POWERPC_MSRM_PPC32 POWERPC_MSRM_604
-#define POWERPC_MMU_PPC32 POWERPC_MMU_604
-#define POWERPC_EXCP_PPC32 POWERPC_EXCP_604
-#define POWERPC_INPUT_PPC32 POWERPC_INPUT_604
-#define POWERPC_BFDM_PPC32 POWERPC_BFDM_604
-#define POWERPC_FLAG_PPC32 POWERPC_FLAG_604
-#define check_pow_PPC32 check_pow_604
-#define init_proc_PPC32 init_proc_604
-
-/* Default 64 bits PowerPC target will be 970 FX */
-#define CPU_POWERPC_PPC64 CPU_POWERPC_970FX
-#define POWERPC_INSNS_PPC64 POWERPC_INSNS_970FX
-#define POWERPC_INSNS2_PPC64 POWERPC_INSNS2_970FX
-#define POWERPC_MSRM_PPC64 POWERPC_MSRM_970FX
-#define POWERPC_MMU_PPC64 POWERPC_MMU_970FX
-#define POWERPC_EXCP_PPC64 POWERPC_EXCP_970FX
-#define POWERPC_INPUT_PPC64 POWERPC_INPUT_970FX
-#define POWERPC_BFDM_PPC64 POWERPC_BFDM_970FX
-#define POWERPC_FLAG_PPC64 POWERPC_FLAG_970FX
-#define check_pow_PPC64 check_pow_970FX
-#define init_proc_PPC64 init_proc_970FX
-
/*****************************************************************************/
/* PVR definitions for most known PowerPC */
enum {
@@ -9111,11 +9085,6 @@ static const ppc_def_t ppc_defs[] = {
/* PA PA6T */
POWERPC_DEF("PA6T", CPU_POWERPC_PA6T, PA6T)
#endif
- /* Generic PowerPCs */
-#if defined (TARGET_PPC64)
- POWERPC_DEF("ppc64", CPU_POWERPC_PPC64, PPC64)
-#endif
- POWERPC_DEF("ppc32", CPU_POWERPC_PPC32, PPC32)
};
typedef struct PowerPCCPUAlias {
@@ -9213,6 +9182,11 @@ static const PowerPCCPUAlias ppc_cpu_aliases[] = {
{ "RSC2", "POWER2" },
{ "P2SC", "POWER2" },
+ /* Generic PowerPCs */
+#if defined(TARGET_PPC64)
+ { "ppc64", "970fx" },
+#endif
+ { "ppc32", "604" },
{ "ppc", "ppc32" },
{ "default", "ppc" },
};
--
1.6.0.2
- [Qemu-ppc] [PATCH 03/66] target-ppc: Fix "G2leGP3" PVR, (continued)
- [Qemu-ppc] [PATCH 03/66] target-ppc: Fix "G2leGP3" PVR, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 05/66] target-ppc: Drop nested TARGET_PPC64 guard for POWER7, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 16/66] target-ppc: Extract 74x1 aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 08/66] target-ppc: Make -cpu "ppc" an alias to "ppc32", Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 04/66] target-ppc: Update error handling in ppc_cpu_realize(), Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 02/66] target-ppc: Fix CPU_POWERPC_MPC8547E, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 10/66] target-ppc: Extract MGT823/MPC8xx as aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 17/66] target-ppc: Extract 7450 alias, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 12/66] target-ppc: Extract 440 aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 11/66] target-ppc: Extract 40x aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 13/66] target-ppc: Turn "ppc32" and "ppc64" CPUs into aliases,
Alexander Graf <=
- [Qemu-ppc] [PATCH 09/66] target-ppc: Extract MPC5xx aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 20/66] target-ppc: Extract 7400 alias, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 19/66] target-ppc: Extract 7410 alias, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 21/66] target-ppc: Extract 7x5 aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 23/66] target-ppc: Extract 740/750 aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 26/66] target-ppc: Extract 601/601v aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 07/66] target-ppc: Extract aliases from definitions list, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 18/66] target-ppc: Extract 7448 alias, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 27/66] target-ppc: Extract 604e alias, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 25/66] target-ppc: Extract 603r alias, Alexander Graf, 2013/03/08