target/ppc: add vhyp addressing mode helper for radix MMU
authorNicholas Piggin <npiggin@gmail.com>
Fri, 18 Feb 2022 07:34:14 +0000 (08:34 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 18 Feb 2022 07:34:14 +0000 (08:34 +0100)
commit4dce0bde3047e773750237390ecd64829f1eac58
tree4cbee10f890a1799da6dbb7fb76fd85c045767db
parent93aeb702105e0dabaf70518bacc7f6fc102c1c34
target/ppc: add vhyp addressing mode helper for radix MMU

The radix on vhyp MMU uses a single-level radix table walk, with the
partition scope mapping provided by the flat QEMU machine memory.

A subsequent change will use the two-level radix walk on vhyp in some
situations, so provide a helper which can abstract that logic.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20220216102545.1808018-5-npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/mmu-radix64.c