target/ppc: change ppc_hash32_xlate to use mmu_idx
authorBruno Larsen (billionai) <bruno.larsen@eldorado.org.br>
Tue, 6 Jul 2021 15:03:16 +0000 (12:03 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 9 Jul 2021 00:38:19 +0000 (10:38 +1000)
commitd423baf9b48cc4749e5f7d77214a089651bc3325
treeb87ce477f53f82efe3d6a3bd431de4aadb8bcb59
parenta97c4d3c1e55f3098549bc4481f58a91a5834620
target/ppc: change ppc_hash32_xlate to use mmu_idx

Changed hash32 address translation to use the supplied mmu_idx, instead
of using what was stored in the msr, for parity purposes (radix64
already uses that) and for conceptual correctness, all the relevant
functions should always use the supplied mmu_idx, as there are no
guarantees that the mmu_idx stored in the CPU variable will not desync.

Signed-off-by: Bruno Larsen (billionai) <bruno.larsen@eldorado.org.br>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20210706150316.21005-3-bruno.larsen@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/mmu-hash32.c
target/ppc/mmu-hash32.h
target/ppc/mmu_helper.c