mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-03 09:41:53 +00:00

cpu_get_phys_page_debug() is a trivial wrapper around get_physical_address(). But even the signature of get_physical_address() has some things we'd like to clean up on a per-mmu basis, so this patch moves the test on mmu model out to cpu_get_phys_page_debug(), moving the version for 64-bit hash MMUs out to mmu-hash64.c and the version for 32-bit hash MMUs to mmu-hash32.c Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
14 lines
387 B
C
14 lines
387 B
C
#if !defined (__MMU_HASH32_H__)
|
|
#define __MMU_HASH32_H__
|
|
|
|
#ifndef CONFIG_USER_ONLY
|
|
|
|
int pte32_is_valid(target_ulong pte0);
|
|
hwaddr ppc_hash32_get_phys_page_debug(CPUPPCState *env, target_ulong addr);
|
|
int ppc_hash32_handle_mmu_fault(CPUPPCState *env, target_ulong address, int rw,
|
|
int mmu_idx);
|
|
|
|
#endif /* CONFIG_USER_ONLY */
|
|
|
|
#endif /* __MMU_HASH32_H__ */
|