mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
Remove cpu_get_phys_page_debug from userspace emulation
cpu_get_phys_page_debug makes no sense for userspace emulation, so remove it. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
b3755a915e
commit
4fcc562bff
12 changed files with 16 additions and 64 deletions
|
@ -253,19 +253,17 @@ static void raise_mmu_exception(CPUState *env, target_ulong address,
|
|||
env->error_code = error_code;
|
||||
}
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
|
||||
{
|
||||
#if defined(CONFIG_USER_ONLY)
|
||||
return addr;
|
||||
#else
|
||||
target_phys_addr_t phys_addr;
|
||||
int prot;
|
||||
|
||||
if (get_physical_address(env, &phys_addr, &prot, addr, 0, ACCESS_INT) != 0)
|
||||
return -1;
|
||||
return phys_addr;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
int cpu_mips_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
|
||||
int mmu_idx, int is_softmmu)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue