Subject: Re: powerpc/e500mc: Set assembler machine type to e500mc

From: Michael Ellerman <[email-masked]>
Date: Wed, 20 Jun 2018 09:21:12 +1000 (AEST)

On Thu, 2018-06-14 at 15:27:42 UTC, Michael Jeanson wrote:
> In binutils 2.26 a new opcode for the "wait" instruction was added for the
> POWER9 and has precedence over the one specific to the e500mc. Commit
> ebf714ff3756 ("powerpc/e500mc: Add support for the wait instruction in
> e500_idle") uses this instruction specifically on the e500mc to work around
> an erratum.
> 
> This results in an invalid instruction in idle_e500 when we build for the
> e500mc on bintutils >= 2.26 with the default assembler machine type.
> 
> Since multiplatform between e500 and non-e500 is not supported, set the
> assembler machine type globaly when CONFIG_PPC_E500MC=y.
> 
> Signed-off-by: Michael Jeanson <[email-masked]>
> Reviewed-by: Mathieu Desnoyers <[email-masked]>
> CC: Benjamin Herrenschmidt <[email-masked]>
> CC: Paul Mackerras <[email-masked]>
> CC: Michael Ellerman <[email-masked]>
> CC: Kumar Gala <[email-masked]>
> CC: Vakul Garg <[email-masked]>
> CC: Scott Wood <[email-masked]>
> CC: Mathieu Desnoyers <[email-masked]>
> CC: [email-masked]
> CC: [email-masked]
> CC: [email-masked]

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/69a8405999aa1c489de4b8d349468f

cheers