Search
lxdream.org :: lxdream/src/sh4/sh4mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mem.c
changeset 927:17b6b9e245d8
prev912:c5606ea44232
next929:fd8cb0c82f5f
next953:f4a156508ad1
author nkeynes
date Mon Dec 15 10:44:56 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Add return-address-modifying exception return code to mmu TLB lookups (a little bit faster)
file annotate diff log raw
1.1 --- a/src/sh4/sh4mem.c Fri Oct 31 03:24:49 2008 +0000
1.2 +++ b/src/sh4/sh4mem.c Mon Dec 15 10:44:56 2008 +0000
1.3 @@ -432,18 +432,3 @@
1.4 }
1.5 }
1.6
1.7 -sh4ptr_t sh4_get_region_by_vma( sh4addr_t vma )
1.8 -{
1.9 - sh4addr_t addr = mmu_vma_to_phys_read(vma);
1.10 - if( addr == MMU_VMA_ERROR ) {
1.11 - return NULL;
1.12 - }
1.13 -
1.14 - sh4ptr_t page = page_map[ (addr & 0x1FFFFFFF) >> 12 ];
1.15 - if( ((uintptr_t)page) < MAX_IO_REGIONS ) { /* IO Region */
1.16 - return NULL;
1.17 - } else {
1.18 - return page+(addr&0xFFF);
1.19 - }
1.20 -}
1.21 -
.