Commit 3c1adf12350b65197d70c4d2911be4d7440d0cfc

Authored by edgar_igl
1 parent 8cd6345d

SH: Add cpu_sh4_is_cached for linux-user.

The entire U0 area is assumed to be cacheable.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6969 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 6 additions and 0 deletions
target-sh4/helper.c
... ... @@ -60,6 +60,12 @@ target_phys_addr_t cpu_get_phys_page_debug(CPUState * env, target_ulong addr)
60 60 return addr;
61 61 }
62 62  
  63 +int cpu_sh4_is_cached(CPUSH4State * env, target_ulong addr)
  64 +{
  65 + /* For user mode, only U0 area is cachable. */
  66 + return !!(addr & 0x80000000);
  67 +}
  68 +
63 69 #else /* !CONFIG_USER_ONLY */
64 70  
65 71 #define MMU_OK 0
... ...