Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/kvm: Fix build errors with older toolchains

On a box with gcc 4.3.2, I see errors like:

arch/powerpc/kvm/book3s_hv_rmhandlers.S:1254: Error: Unrecognized opcode: stxvd2x
arch/powerpc/kvm/book3s_hv_rmhandlers.S:1316: Error: Unrecognized opcode: lxvd2x

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Nishanth Aravamudan and committed by
Benjamin Herrenschmidt
2c740c58 53876e38

+2 -2
+2 -2
arch/powerpc/kvm/book3s_hv_rmhandlers.S
··· 1251 1251 reg = 0 1252 1252 .rept 32 1253 1253 li r6,reg*16+VCPU_VSRS 1254 - stxvd2x reg,r6,r3 1254 + STXVD2X(reg,r6,r3) 1255 1255 reg = reg + 1 1256 1256 .endr 1257 1257 FTR_SECTION_ELSE ··· 1313 1313 reg = 0 1314 1314 .rept 32 1315 1315 li r7,reg*16+VCPU_VSRS 1316 - lxvd2x reg,r7,r4 1316 + LXVD2X(reg,r7,r4) 1317 1317 reg = reg + 1 1318 1318 .endr 1319 1319 FTR_SECTION_ELSE