Comment 7 for bug 1463836

Revision history for this message
Peter Bergner (pbergner) wrote : Re: 4.0 kernel build failure on ppc64el

Here is a minimal test case extracted from swsusp_asm64.s:

bergner@genoa:~/binutils/BUGS$ cat tlbie.s
 .text
 tlbie %r4

bergner@genoa:~/binutils/BUGS$ /home/bergner/binutils/build/binutils-2_25/gas/as-new -a64 -mpower7 tlbie.s
tlbie.s: Assembler messages:
tlbie.s:2: Error: missing operand

In ISA 2.06 (ie, POWER7), the tlbie instruction was changed from:

        tlbie RB,L # Where L = 0 or 1 and "tlbie RB" is an extended mnemonic for "tlbie RB,0"
to
        tlbie RB,RS

The assembler was recently changed to accept the "tlbie RB,RS" variant so that is why we are seeing the error now and not before, but I believe it is correct that the assembler error out on this, as the tlbie instruction really did change. I believe the correct "fix" for this is going to take a kernel source change. Whether that is to setup and pass RS to the tlbie or whether we should use tlbiel instead, I'm not sure. I'll ping our kernel team and see what they say.