Search
lxdream.org :: lxdream/src/sh4/mmu.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/mmu.h
changeset 1217:677b1d85f1b4
prev1067:d3c00ffccfcd
author nkeynes
date Mon Feb 13 20:00:27 2012 +1000 (9 years ago)
permissions -rw-r--r--
last change Fix MMU on non-translated platforms
- reintroduce old VMA translation functions (slightly modified)
- modify shadow processing to work on post-translated memory ops
file annotate diff log raw
1.1 --- a/src/sh4/mmu.h Sun Jul 05 13:54:48 2009 +1000
1.2 +++ b/src/sh4/mmu.h Mon Feb 13 20:00:27 2012 +1000
1.3 @@ -106,8 +106,18 @@
1.4 mem_region_fn_t tlb_multihit;
1.5 };
1.6
1.7 +/** Set the MMU's target external address space
1.8 + * @return the previous address space.
1.9 + */
1.10 +mem_region_fn_t *mmu_set_ext_address_space( mem_region_fn_t *space );
1.11 +
1.12 +/* Address translation functions */
1.13 sh4addr_t FASTCALL mmu_vma_to_phys_disasm( sh4vma_t vma );
1.14 +mem_region_fn_t FASTCALL mmu_get_region_for_vma_read( sh4vma_t *addr );
1.15 +mem_region_fn_t FASTCALL mmu_get_region_for_vma_write( sh4vma_t *addr );
1.16 +mem_region_fn_t FASTCALL mmu_get_region_for_vma_prefetch( sh4vma_t *addr );
1.17
1.18 +/* Translator provided helpers */
1.19 void mmu_utlb_init_vtable( struct utlb_entry *ent, struct utlb_page_entry *page, gboolean writable );
1.20 void mmu_utlb_1k_init_vtable( struct utlb_1k_entry *ent );
1.21 void mmu_utlb_init_storequeue_vtable( struct utlb_entry *ent, struct utlb_page_entry *page );
.