target/ppc: fix Hash64 MMU update of PTE bit R
commit7bf00dfb51566070960e0b7977e41abba96c130e
authorLeandro Lupori <leandro.lupori@eldorado.org.br>
Mon, 29 Nov 2021 18:57:51 +0000 (29 15:57 -0300)
committerCédric Le Goater <clg@kaod.org>
Mon, 29 Nov 2021 20:00:08 +0000 (29 21:00 +0100)
tree5bf295d2edf52f01636b3b2b230dec199362f4df
parenta0fd8a5492240379a07c0b39c8dae3b8341b458f
target/ppc: fix Hash64 MMU update of PTE bit R

When updating the R bit of a PTE, the Hash64 MMU was using a wrong byte
offset, causing the first byte of the adjacent PTE to be corrupted.
This caused a panic when booting FreeBSD, using the Hash MMU.

Fixes: a2dd4e83e76b ("ppc/hash64: Rework R and C bit updates")
Signed-off-by: Leandro Lupori <leandro.lupori@eldorado.org.br>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/spapr.c
hw/ppc/spapr_softmmu.c
target/ppc/mmu-hash64.c
target/ppc/mmu-hash64.h