Search
lxdream.org :: lxdream :: r598:8798c3f0bf78
lxdream 0.9.1
released Jun 29
Download Now
changeset598:8798c3f0bf78
parent597:87cbdf62aa35
child599:2a73a1a53032
authornkeynes
dateTue Jan 22 10:06:41 2008 +0000 (11 years ago)
Update sh4_get_region_by_vma (not that anyone uses it...)
src/sh4/sh4mem.c
1.1 --- a/src/sh4/sh4mem.c Tue Jan 22 09:45:21 2008 +0000
1.2 +++ b/src/sh4/sh4mem.c Tue Jan 22 10:06:41 2008 +0000
1.3 @@ -425,12 +425,11 @@
1.4
1.5 sh4ptr_t sh4_get_region_by_vma( sh4addr_t vma )
1.6 {
1.7 - uint64_t ppa = mmu_vma_to_phys_read(vma);
1.8 - if( ppa>>32 ) {
1.9 - return 0;
1.10 + sh4addr_t addr = mmu_vma_to_phys_read(vma);
1.11 + if( addr == MMU_VMA_ERROR ) {
1.12 + return NULL;
1.13 }
1.14
1.15 - sh4addr_t addr = (sh4addr_t)ppa;
1.16 sh4ptr_t page = page_map[ (addr & 0x1FFFFFFF) >> 12 ];
1.17 if( ((uintptr_t)page) < MAX_IO_REGIONS ) { /* IO Region */
1.18 return NULL;
.