target/ppc: Don't store VRMA SLBE persistently
commit4c24a87f662a46264dd73f6dd05a4a0c30b2038b
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Feb 2020 04:29:26 +0000 (27 15:29 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Mar 2020 22:41:15 +0000 (17 09:41 +1100)
tree530db6bc59a843cbe9e46fde266e81509edcbf73
parent3a56a55ccb2e31e3a52d74db2ddd8ea603ea667b
target/ppc: Don't store VRMA SLBE persistently

Currently, we construct the SLBE used for VRMA translations when the LPCR
is written (which controls some bits in the SLBE), then use it later for
translations.

This is a bit complex and confusing - simplify it by simply constructing
the SLBE directly from the LPCR when we need it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
target/ppc/cpu.h
target/ppc/mmu-hash64.c