diff options
Diffstat (limited to 'target/ppc/mmu-hash32.h')
-rw-r--r-- | target/ppc/mmu-hash32.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/ppc/mmu-hash32.h b/target/ppc/mmu-hash32.h index bc4eedb..5902cf8 100644 --- a/target/ppc/mmu-hash32.h +++ b/target/ppc/mmu-hash32.h @@ -102,6 +102,11 @@ static inline void ppc_hash32_store_hpte1(PowerPCCPU *cpu, stl_phys(CPU(cpu)->as, base + pte_offset + HASH_PTE_SIZE_32 / 2, pte1); } +static inline bool ppc_hash32_key(bool pr, target_ulong sr) +{ + return pr ? (sr & SR32_KP) : (sr & SR32_KS); +} + static inline int ppc_hash32_prot(bool key, int pp, bool nx) { int prot; |