Subject: Re: powerpc/xmon: Don't use ld on 32-bit

From: Michael Ellerman <[email-masked]>
Date: Tue, 13 Sep 2016 22:16:35 +1000 (AEST)

On Fri, 2016-09-09 at 05:54:37 UTC, Michael Ellerman wrote:
> In commit 31cdd0c39c75 ("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: 31cdd0c39c75 ("powerpc/xmon: Fix SPR read/write commands and add command to dump SPRs")
> Cc: [email-masked] # v4.7+
> Reported-by: John Paul Adrian Glaubitz <[email-masked]>
> Signed-off-by: Michael Ellerman <[email-masked]>

Applied to powerpc next.

https://git.kernel.org/powerpc/c/b42d9023a31e384504f5b53fc9

cheers