mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
target-ppc: Disentangle find_pte()
32-bit and 64-bit hash MMU implementations currently share a find_pte function. This results in a whole bunch of ugly conditionals in the shared function, and not all that much actually shared code. This patch separates out the 32-bit and 64-bit versions, putting then in mmu-hash64.c and mmu-has32.c, and removes the conditionals from both versions. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
9d7c3f4a29
commit
c69b6151e7
6 changed files with 164 additions and 122 deletions
|
@ -7,8 +7,8 @@
|
|||
ppc_slb_t *slb_lookup(CPUPPCState *env, target_ulong eaddr);
|
||||
void dump_slb(FILE *f, fprintf_function cpu_fprintf, CPUPPCState *env);
|
||||
int ppc_store_slb (CPUPPCState *env, target_ulong rb, target_ulong rs);
|
||||
int pte64_check(mmu_ctx_t *ctx, target_ulong pte0,
|
||||
target_ulong pte1, int h, int rw, int type);
|
||||
int find_pte64(CPUPPCState *env, mmu_ctx_t *ctx, int h,
|
||||
int rw, int type, int target_page_bits);
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_USER_ONLY */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue