aboutsummaryrefslogtreecommitdiff
path: root/target-mips/helper.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2010-03-01 04:11:28 +0000
committerPaul Brook <paul@codesourcery.com>2010-03-12 18:44:24 +0000
commit3c7b48b74cb017ab6da7c3c0bc205a03943a6274 (patch)
treeed0713ad05f3ea31fbb3d7c9e546fa0f45c86666 /target-mips/helper.c
parent4fcc562bff94c28cc06d510d87280afc467add6d (diff)
Target specific usermode cleanup
Disable various target specific code that is only relevant to system emulation. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'target-mips/helper.c')
-rw-r--r--target-mips/helper.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index 43d11b351d..933c7bc1df 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -34,6 +34,8 @@ enum {
TLBRET_MATCH = 0
};
+#if !defined(CONFIG_USER_ONLY)
+
/* no MMU emulation */
int no_mmu_map_address (CPUState *env, target_phys_addr_t *physical, int *prot,
target_ulong address, int rw, int access_type)
@@ -98,7 +100,6 @@ int r4k_map_address (CPUState *env, target_phys_addr_t *physical, int *prot,
return TLBRET_NOMATCH;
}
-#if !defined(CONFIG_USER_ONLY)
static int get_physical_address (CPUState *env, target_phys_addr_t *physical,
int *prot, target_ulong address,
int rw, int access_type)
@@ -599,6 +600,7 @@ void do_interrupt (CPUState *env)
env->exception_index = EXCP_NONE;
}
+#if !defined(CONFIG_USER_ONLY)
void r4k_invalidate_tlb (CPUState *env, int idx, int use_extra)
{
r4k_tlb_t *tlb;
@@ -652,3 +654,4 @@ void r4k_invalidate_tlb (CPUState *env, int idx, int use_extra)
}
}
}
+#endif