mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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
This commit is contained in:
parent
8cd6345d00
commit
3c1adf1235
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue