diff options
author | Bruno Larsen (billionai) | 2021-07-06 17:03:16 +0200 |
---|---|---|
committer | David Gibson | 2021-07-09 02:38:19 +0200 |
commit | d423baf9b48cc4749e5f7d77214a089651bc3325 (patch) | |
tree | b87ce477f53f82efe3d6a3bd431de4aadb8bcb59 /target/ppc/mmu-hash32.h | |
parent | target/ppc: introduce mmu-books.h (diff) | |
download | qemu-d423baf9b48cc4749e5f7d77214a089651bc3325.tar.gz qemu-d423baf9b48cc4749e5f7d77214a089651bc3325.tar.xz qemu-d423baf9b48cc4749e5f7d77214a089651bc3325.zip |
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>
Diffstat (limited to 'target/ppc/mmu-hash32.h')
-rw-r--r-- | target/ppc/mmu-hash32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/ppc/mmu-hash32.h b/target/ppc/mmu-hash32.h index c9f584b8ee..3892b693d6 100644 --- a/target/ppc/mmu-hash32.h +++ b/target/ppc/mmu-hash32.h @@ -5,7 +5,7 @@ hwaddr get_pteg_offset32(PowerPCCPU *cpu, hwaddr hash); bool ppc_hash32_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type, - hwaddr *raddrp, int *psizep, int *protp, + hwaddr *raddrp, int *psizep, int *protp, int mmu_idx, bool guest_visible); /* |