Thread (33 messages) 33 messages, 5 authors, 2022-07-12

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

From: Segher Boessenkool <hidden>
Date: 2022-07-11 21:52:12
Also in: lkml

Hi!

On Mon, Jul 11, 2022 at 05:32:09PM +0000, Christophe Leroy wrote:
Le 11/07/2022 à 18:14, Segher Boessenkool a écrit :
quoted
quoted
    CC      arch/powerpc/kernel/irq.o
{standard input}: Assembler messages:
{standard input}:3535: Error: unrecognized opcode: `wrteei'
{standard input}:5608: Error: unrecognized opcode: `wrteei'
What -mcpu= did it use here?
-mcpu=powerpc64
quoted
wrteei is not a PowerPC insn (it is BookE, instead), so it is not
recognised without an appropriate -mcpu=.
quoted
If I select the e5500 (without altivec) or e6500 I get:

    CC      arch/powerpc/kernel/io.o
{standard input}: Assembler messages:
{standard input}:381: Error: unrecognized opcode: `eieio'
Same question.  eieio is a base PowerPC instruction, so this one is
"interesting" :-)
-mcpu=e500mc64 (for e5500)
-mcpu=e6500 (for e6500)

I had to replace 'eieio' instruction by 'mbar' instruction.
I saw some patches fly by...  you have it all fixed with that?
Seems like binutils added 'eieio' to e500 in 2010 via commit 
e01d869a3be, but it seems it is only for the 85xx, not for the others.
I believe the eieio instruction is disabled on some e500 models, because
it does not work correctly, so EIEIO_EN=1 cannot work, something like
that?


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help