summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2010-03-01 03:46:18 +0000
committerPaul Brook <paul@codesourcery.com>2010-03-12 18:34:25 +0000
commit4fcc562bff94c28cc06d510d87280afc467add6d (patch)
tree6d298bdb510b2687b6c80c36bcd555fb0ee7d0d6 /target-mips
parentb3755a915e40271e8d2b1119e8a1dc1f3e88d2e5 (diff)
downloadqemu-4fcc562bff94c28cc06d510d87280afc467add6d.tar.gz
qemu-4fcc562bff94c28cc06d510d87280afc467add6d.tar.bz2
qemu-4fcc562bff94c28cc06d510d87280afc467add6d.zip
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>
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/helper.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index a3f099f04b..43d11b351d 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -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)