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>
13 lines
297 B
C
13 lines
297 B
C
#if !defined (__MMU_HASH32_H__)
|
|
#define __MMU_HASH32_H__
|
|
|
|
#ifndef CONFIG_USER_ONLY
|
|
|
|
int pte32_is_valid(target_ulong pte0);
|
|
int find_pte32(CPUPPCState *env, mmu_ctx_t *ctx, int h,
|
|
int rw, int type, int target_page_bits);
|
|
|
|
#endif /* CONFIG_USER_ONLY */
|
|
|
|
#endif /* __MMU_HASH32_H__ */
|