ppc/hash64: Rework R and C bit updates
commita2dd4e83e76ba9c0d432145059dd9e2b2a096e2b
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 11 Apr 2019 08:00:01 +0000 (11 10:00 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 26 Apr 2019 01:37:57 +0000 (26 11:37 +1000)
tree97554cc89ba0383a59e949cde23cddfefb409027
parent993aaf0c0003f7af1bf62c1c2d5cc3c0fe687f5b
ppc/hash64: Rework R and C bit updates

With MT-TCG, we are now running translation in a racy way, thus
we need to mimic hardware when it comes to updating the R and
C bits, by doing byte stores.

The current "store_hpte" abstraction is ill suited for this, we
replace it with two separate callbacks for setting R and C.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20190411080004.8690-4-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_hcall.c
include/hw/ppc/spapr.h
target/ppc/cpu.h
target/ppc/mmu-hash64.c
target/ppc/mmu-hash64.h