Patchwork [for-1.4?] target-ppc: Fix CPU_POWERPC_MPC8547E

login
register
mail settings
Submitter Andreas Färber
Date Feb. 11, 2013, 8:53 p.m.
Message ID <1360615991-9462-1-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/219682/
State New
Headers show

Comments

Andreas Färber - Feb. 11, 2013, 8:53 p.m.
It was defined to ..._MPC8545E_v21 rather than ..._MPC8547E_v21.
Due to both resolving to CPU_POWERPC_e500v2_v21 this did not show.

Fixing this nontheless helps with QOM'ifying CPU aliases.

Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 target-ppc/translate_init.c |    2 +-
 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)
Alexander Graf - Feb. 12, 2013, 10:13 p.m.
On 11.02.2013, at 21:53, Andreas Färber wrote:

> It was defined to ..._MPC8545E_v21 rather than ..._MPC8547E_v21.
> Due to both resolving to CPU_POWERPC_e500v2_v21 this did not show.
> 
> Fixing this nontheless helps with QOM'ifying CPU aliases.
> 
> Signed-off-by: Andreas Färber <afaerber@suse.de>

Thanks, applied to ppc-next. This is not 1.4 material.


Alex

> ---
> target-ppc/translate_init.c |    2 +-
> 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)
> 
> diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
> index 6cebaa1..4a1e5a6 100644
> --- a/target-ppc/translate_init.c
> +++ b/target-ppc/translate_init.c
> @@ -7282,7 +7282,7 @@ enum {
> #define CPU_POWERPC_MPC8545E_v10     CPU_POWERPC_e500v2_v10
> #define CPU_POWERPC_MPC8545E_v20     CPU_POWERPC_e500v2_v20
> #define CPU_POWERPC_MPC8545E_v21     CPU_POWERPC_e500v2_v21
> -#define CPU_POWERPC_MPC8547E         CPU_POWERPC_MPC8545E_v21
> +#define CPU_POWERPC_MPC8547E         CPU_POWERPC_MPC8547E_v21
> #define CPU_POWERPC_MPC8547E_v10     CPU_POWERPC_e500v2_v10
> #define CPU_POWERPC_MPC8547E_v20     CPU_POWERPC_e500v2_v20
> #define CPU_POWERPC_MPC8547E_v21     CPU_POWERPC_e500v2_v21
> -- 
> 1.7.10.4
>

Patch

diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 6cebaa1..4a1e5a6 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7282,7 +7282,7 @@  enum {
 #define CPU_POWERPC_MPC8545E_v10     CPU_POWERPC_e500v2_v10
 #define CPU_POWERPC_MPC8545E_v20     CPU_POWERPC_e500v2_v20
 #define CPU_POWERPC_MPC8545E_v21     CPU_POWERPC_e500v2_v21
-#define CPU_POWERPC_MPC8547E         CPU_POWERPC_MPC8545E_v21
+#define CPU_POWERPC_MPC8547E         CPU_POWERPC_MPC8547E_v21
 #define CPU_POWERPC_MPC8547E_v10     CPU_POWERPC_e500v2_v10
 #define CPU_POWERPC_MPC8547E_v20     CPU_POWERPC_e500v2_v20
 #define CPU_POWERPC_MPC8547E_v21     CPU_POWERPC_e500v2_v21