[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 10/66] target-ppc: Extract MGT823/MPC8xx as aliases
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 10/66] target-ppc: Extract MGT823/MPC8xx as aliases |
Date: |
Fri, 8 Mar 2013 21:06:12 +0100 |
From: Andreas Färber <address@hidden>
They used different PVRs but were defined to MPC8xx.
Signed-off-by: Andreas Färber <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
target-ppc/translate_init.c | 93 ++++++++-----------------------------------
1 files changed, 17 insertions(+), 76 deletions(-)
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 6a5f7e8..6a86e10 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7059,21 +7059,6 @@ enum {
CPU_POWERPC_MPC5xx = 0x00020020,
/* PowerPC MPC 8xx cores (aka PowerQUICC) */
CPU_POWERPC_MPC8xx = 0x00500000,
-#define CPU_POWERPC_MGT823 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC821 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC823 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC850 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC852T CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC855T CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC857 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC859 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC860 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC862 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC866 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC870 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC875 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC880 CPU_POWERPC_MPC8xx
-#define CPU_POWERPC_MPC885 CPU_POWERPC_MPC8xx
/* G2 cores (aka PowerQUICC-II) */
CPU_POWERPC_G2 = 0x00810011,
CPU_POWERPC_G2H4 = 0x80811010,
@@ -8048,67 +8033,6 @@ static const ppc_def_t ppc_defs[] = {
/* Generic MPC8xx core */
POWERPC_DEF("MPC8xx", CPU_POWERPC_MPC8xx, MPC8xx)
#endif
- /* MPC8xx microcontrollers */
-#if defined(TODO_USER_ONLY)
- /* MGT823 */
- POWERPC_DEF("MGT823", CPU_POWERPC_MGT823, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC821 */
- POWERPC_DEF("MPC821", CPU_POWERPC_MPC821, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC823 */
- POWERPC_DEF("MPC823", CPU_POWERPC_MPC823, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC850 */
- POWERPC_DEF("MPC850", CPU_POWERPC_MPC850, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC852T */
- POWERPC_DEF("MPC852T", CPU_POWERPC_MPC852T, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC855T */
- POWERPC_DEF("MPC855T", CPU_POWERPC_MPC855T, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC857 */
- POWERPC_DEF("MPC857", CPU_POWERPC_MPC857, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC859 */
- POWERPC_DEF("MPC859", CPU_POWERPC_MPC859, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC860 */
- POWERPC_DEF("MPC860", CPU_POWERPC_MPC860, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC862 */
- POWERPC_DEF("MPC862", CPU_POWERPC_MPC862, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC866 */
- POWERPC_DEF("MPC866", CPU_POWERPC_MPC866, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC870 */
- POWERPC_DEF("MPC870", CPU_POWERPC_MPC870, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC875 */
- POWERPC_DEF("MPC875", CPU_POWERPC_MPC875, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC880 */
- POWERPC_DEF("MPC880", CPU_POWERPC_MPC880, MPC8xx)
-#endif
-#if defined(TODO_USER_ONLY)
- /* MPC885 */
- POWERPC_DEF("MPC885", CPU_POWERPC_MPC885, MPC8xx)
-#endif
/* MPC82xx family (aka PowerQUICC-II) */
/* Generic MPC52xx core */
POWERPC_DEF_SVR("MPC52xx",
@@ -9253,6 +9177,23 @@ static const PowerPCCPUAlias ppc_cpu_aliases[] = {
{ "MPC566", "MPC5xx" },
{ "PowerQUICC", "MPC8xx" },
+ /* MPC8xx microcontrollers */
+ { "MGT823", "MPC8xx" },
+ { "MPC821", "MPC8xx" },
+ { "MPC823", "MPC8xx" },
+ { "MPC850", "MPC8xx" },
+ { "MPC852T", "MPC8xx" },
+ { "MPC855T", "MPC8xx" },
+ { "MPC857", "MPC8xx" },
+ { "MPC859", "MPC8xx" },
+ { "MPC860", "MPC8xx" },
+ { "MPC862", "MPC8xx" },
+ { "MPC866", "MPC8xx" },
+ { "MPC870", "MPC8xx" },
+ { "MPC875", "MPC8xx" },
+ { "MPC880", "MPC8xx" },
+ { "MPC885", "MPC8xx" },
+
{ "PowerQUICC-II", "MPC82xx" },
{ "e500", "e500v2_v22" },
{ "Vanilla", "603" },
--
1.6.0.2
- [Qemu-ppc] [PULL 00/66] ppc patch queue 2013-03-08, Alexander Graf, 2013/03/08
- [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 <=
- [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, 2013/03/08
- [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