target/ppc: Use probe_access for LSW, STSW
commitbb99b391896f3c7a477777e3d47a2524fd795357
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 29 Jan 2020 23:50:37 +0000 (29 15:50 -0800)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 3 Feb 2020 00:33:11 +0000 (3 11:33 +1100)
tree7c1724ccad381e96ba8f7207cce2f0491de725c5
parente0aeef7a3532a7abe921ea96c6a1e974f2ab1fa1
target/ppc: Use probe_access for LSW, STSW

Use a minimum number of mmu lookups for the contiguous bytes
that are accessed.  If the lookup succeeds, we can finish the
operation with host addresses only.

Reported-by: Howard Spoelstra <hsp.cat7@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200129235040.24022-2-richard.henderson@linaro.org>
Tested-by: Howard Spoelstra <hsp.cat7@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/mem_helper.c