ARM: pxa: fix building with clang
authorArnd Bergmann <arnd@arndb.de>
Thu, 15 Dec 2022 16:25:14 +0000 (17:25 +0100)
committerArnd Bergmann <arnd@arndb.de>
Mon, 19 Dec 2022 15:46:32 +0000 (16:46 +0100)
commit4b88615950fc805690b92b46c8ab794beb4bd6aa
tree119d07e702005d5f780e0b459016be01ecc8fc55
parent4c03c4188cfb831e4ac093599192aedd60625a45
ARM: pxa: fix building with clang

The integrated assembler in clang does not understand the xscale
specific mra/mar instructions:

arch/arm/mach-pxa/pxa27x.c:136:15: error: unsupported architectural extension: xscale
        asm volatile(".arch_extension xscale\n\t"
arch/arm/mach-pxa/pxa27x.c:136:40: error: invalid instruction, did you mean: mcr, mla, mrc, mrs, msr?
        mra r2, r3, acc0

Since these are coprocessor features, the same can be expressed using
mrrc/mcrr, so use that for builds with IAS.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20221215162529.3659187-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-pxa/pxa27x.c
arch/arm/mach-pxa/pxa3xx.c