ppc: Correctly define POWERPC_INSNS2_DEFAULT
PATCH 1/1 ppc: Correctly define POWERPC_INSNS2_DEFAULT
'POWERPC_INSNS2_DEFAULT' was defined incorrectly which was causing the opcode table creation code to erroneously register 'eieio' and 'mbar' for the "default" processor:
** ERROR: opcode 1a already assigned in opcode table 16 *** ERROR: unable to insert opcode [1f-16-1a] *** ERROR initializing PowerPC instruction 0x1f 0x16 0x1a
--- target-ppc/translate_init.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
target-ppc/translate_init.c +2 -2
@@ -6713,7 +6713,7 @@ static void init_proc_620 (CPUPPCState *env)#if defined (TARGET_PPC64 ) &&0 // XXX: TODO #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64#define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64 -#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS_PPC64 +#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS2_PPC64#define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64#define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64#define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64
@@ -6725,7 +6725,7 @@ static void init_proc_620 (CPUPPCState *env)#else #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32#define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32 -#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS_PPC32 +#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS2_PPC32#define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32#define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32#define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
Signature · 1 line
1.7.7.6
Quoted 9 lines · Meador Inge
'
POWERPC_INSNS2_DEFAULT' was defined incorrectly which was causing the opcode table creation code to erroneously register 'eieio' and 'mbar' for the "default" processor:** ERROR: opcode 1a already assigned in opcode table 16 *** ERROR: unable to insert opcode [1f-16-1a] *** ERROR initializing PowerPC instruction
0x1f0x160x1aSigned-off-by Meador Inge <[email protected]>
Ping.
Quoted 26 lines
--- target-ppc/translate_init.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)target-ppc/translate_init.c +2
-2@@ -6713,7 +6713,7 @@ static void init_proc_620 (CPUPPCState *env)#if defined (TARGET_PPC64 ) &&0 // XXX: TODO #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64#define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64 -#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS_PPC64 +#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS2_PPC64#define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64#define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64#define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64@@ -6725,7 +6725,7 @@ static void init_proc_620 (CPUPPCState *env)#else #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32#define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32 -#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS_PPC32 +#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS2_PPC32#define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32#define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32#define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
Signature · 3 lines
Meador Inge CodeSourcery / Mentor Embedded http://www.mentor.com/embedded-software
Am 05.03.2012 18:06, schrieb Meador Inge:
Quoted 6 lines · Meador Inge
Quoted 5 lines
'
POWERPC_INSNS2_DEFAULT' was defined incorrectly which was causing the opcode table creation code to erroneously register 'eieio' and 'mbar' for the "default" processor:
Quoted 7 lines
Quoted 5 lines
** ERROR: opcode 1a already assigned in opcode table 16 *** ERROR: unable to insert opcode [1f-16-1a] *** ERROR initializing PowerPC instruction
0x1f0x160x1aSigned-off-by Meador Inge <[email protected]>Ping.
Cc'ing qemu-ppc.
What's the test case (command line) that breaks? Don't all machines use different default CPUs? I would rather drop these ..._DEFAULT defines in favor of using a real CPU model - but maybe I'm misunderstanding something?
Andreas
Quoted 27 lines
Quoted 27 lines
--- target-ppc/translate_init.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)target-ppc/translate_init.c +2
-2@@ -6713,7 +6713,7 @@ static void init_proc_620 (CPUPPCState *env)#if defined (TARGET_PPC64 ) &&0 // XXX: TODO #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64#define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64 -#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS_PPC64 +#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS2_PPC64#define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64#define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64#define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64@@ -6725,7 +6725,7 @@ static void init_proc_620 (CPUPPCState *env)#else #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32#define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32 -#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS_PPC32 +#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS2_PPC32#define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32#define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32#define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 13 lines · Andreas Färber
Am 05.03.2012 18:06, schrieb Meador Inge:
Quoted 12 lines · Meador Inge
Quoted 10 lines
'
POWERPC_INSNS2_DEFAULT' was defined incorrectly which was causing the opcode table creation code to erroneously register 'eieio' and 'mbar' for the "default" processor:** ERROR: opcode 1a already assigned in opcode table 16 *** ERROR: unable to insert opcode [1f-16-1a] *** ERROR initializing PowerPC instruction
0x1f0x160x1aSigned-off-by Meador Inge <[email protected]>
Quoted 7 lines
Quoted 1 line
Ping.
Cc'ing qemu-ppc.
What's the test case (command line) that breaks? Don't all machines use different default CPUs? I would rather drop these ..._DEFAULT defines in favor of using a real CPU model - but maybe I'm misunderstanding something?
I meant quite literally the "default" CPU:
$ ./install/bin/qemu-system-ppc -cpu default *** ERROR: opcode 1a already assigned in opcode table 16 *** ERROR: unable to insert opcode [1f-16-1a] *** ERROR initializing PowerPC instruction 0x1f 0x16 0x1a Segmentation fault (core dumped)
Quoted 29 lines
Quoted 28 lines
Quoted 28 lines
--- target-ppc/translate_init.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)target-ppc/translate_init.c +2
-2@@ -6713,7 +6713,7 @@ static void init_proc_620 (CPUPPCState *env)#if defined (TARGET_PPC64 ) &&0 // XXX: TODO #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64#define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64 -#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS_PPC64 +#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS2_PPC64#define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64#define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64#define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64@@ -6725,7 +6725,7 @@ static void init_proc_620 (CPUPPCState *env)#else #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32#define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32 -#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS_PPC32 +#define POWERPC_INSNS2_DEFAULT POWERPC_INSNS2_PPC32#define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32#define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32#define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
Signature · 3 lines
Meador Inge CodeSourcery / Mentor Embedded http://www.mentor.com/embedded-software
Quoted 23 lines · Meador Inge
Quoted 13 lines · Andreas Färber
Am 05.03.2012 18:06, schrieb Meador Inge:
Quoted 12 lines · Meador Inge
Quoted 10 lines
'
POWERPC_INSNS2_DEFAULT' was defined incorrectly which was causing the opcode table creation code to erroneously register 'eieio' and 'mbar' for the "default" processor:** ERROR: opcode 1a already assigned in opcode table 16 *** ERROR: unable to insert opcode [1f-16-1a] *** ERROR initializing PowerPC instruction
0x1f0x160x1aSigned-off-by Meador Inge <[email protected]>Quoted 7 lines
Quoted 1 line
Ping.
Cc'ing qemu-ppc.
What's the test case (command line) that breaks? Don't all machines use different default CPUs? I would rather drop these ..._DEFAULT defines in favor of using a real CPU model - but maybe I'm misunderstanding something?
Quoted 7 lines
I meant quite literally the "default" CPU:
$ ./install/bin/qemu-system-ppc -cpu default *** ERROR: opcode 1a already assigned in opcode table 16 *** ERROR: unable to insert opcode [1f-16-1a] *** ERROR initializing PowerPC instruction 0x1f 0x16 0x1a Segmentation fault (core dumped)
Ouch. And thanks, applied to ppc-next.
Alex