aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target-sh4/helper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-sh4/helper.c b/target-sh4/helper.c
index d2e9b3b894..178bfae99a 100644
--- a/target-sh4/helper.c
+++ b/target-sh4/helper.c
@@ -60,6 +60,12 @@ target_phys_addr_t cpu_get_phys_page_debug(CPUState * env, target_ulong addr)
return addr;
}
+int cpu_sh4_is_cached(CPUSH4State * env, target_ulong addr)
+{
+ /* For user mode, only U0 area is cachable. */
+ return !!(addr & 0x80000000);
+}
+
#else /* !CONFIG_USER_ONLY */
#define MMU_OK 0