diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2013-03-12 00:31:14 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-03-22 15:28:48 +0100 |
commit | 496272a7018ba01aa2b87a1a5ed866ff85133401 (patch) | |
tree | 07a2318d117f57e1f817eeeb6f1657385bab6963 /target-ppc/cpu.h | |
parent | f2ad6be83bc284d6c7677bdca879db38d4fdccd5 (diff) | |
download | qemu-496272a7018ba01aa2b87a1a5ed866ff85133401.zip qemu-496272a7018ba01aa2b87a1a5ed866ff85133401.tar.gz qemu-496272a7018ba01aa2b87a1a5ed866ff85133401.tar.bz2 |
target-ppc: Disentangle hash mmu helper functions
The newly separated paths for hash mmus rely on several helper functions
which are still shared with 32-bit hash mmus: pp_check(), check_prot() and
pte_update_flags(). While these don't have ugly ifdefs on the mmu type,
they're not very well thought out, so sharing them impedes cleaning up the
hash mmu paths. For now, put near-duplicate versions into mmu-hash64.c and
mmu-hash32.c, leaving the old version in mmu_helper.c for 6xx software
loaded tlb implementations. The hash 32 and software loaded
implementations are simplfied slightly, using the fact that no 32-bit CPUs
implement the 3rd page protection bit.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r-- | target-ppc/cpu.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 716ffe0..41cd5d6 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -1133,9 +1133,6 @@ void ppc_hw_interrupt (CPUPPCState *env); #if !defined(CONFIG_USER_ONLY) void ppc_store_sdr1 (CPUPPCState *env, target_ulong value); -int pp_check(int key, int pp, int nx); -int check_prot(int prot, int rw, int access_type); -int pte_update_flags(mmu_ctx_t *ctx, target_ulong *pte1p, int ret, int rw); hwaddr get_pteg_offset(CPUPPCState *env, hwaddr hash, int pte_size); int get_bat(CPUPPCState *env, mmu_ctx_t *ctx, target_ulong virtual, int rw, int type); |