]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: Don't use ld on 32-bit
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 9 Sep 2016 04:01:07 +0000 (14:01 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Sep 2016 07:37:02 +0000 (17:37 +1000)
commit627e7d561e2421498dcbc5c22d8253a7a927d7ff
tree200f16fad357481d6c7ae1bf1154105d40a1f40f
parent8d09b0d53dad114d7841a8ee8a02768c219fef2b
powerpc/xmon: Don't use ld on 32-bit

In commit feb394235de5 ("powerpc/xmon: Fix SPR read/write commands and
add command to dump SPRs") I added two uses of the "ld" instruction in
spr_access.S. "ld" is a 64-bit instruction, so shouldn't be used on
32-bit CPUs.

Replace it with PPC_LL which is a macro that gives us either "ld" or
"lwz" depending on whether we're 64 or 32-bit.

Fixes: feb394235de5 ("powerpc/xmon: Fix SPR read/write commands and add command to dump SPRs")
Cc: stable@vger.kernel.org # v4.7+
Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/spr_access.S