Search
lxdream.org :: lxdream/src/sh4/mmu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/mmu.c
changeset 980:deb4361928fe
prev975:007bf7eb944f
next1065:bc1cc0c54917
author nkeynes
date Wed Feb 04 21:45:21 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix signedness in mmu_ext_page_remapped (Thanks kaz!)
Fix fallthrough case in mmu_utlb_entry_for_vpn
Fix signedness warnings in cache.c
file annotate diff log raw
1.1 --- a/src/sh4/mmu.c Mon Jan 26 07:26:24 2009 +0000
1.2 +++ b/src/sh4/mmu.c Wed Feb 04 21:45:21 2009 +0000
1.3 @@ -389,7 +389,7 @@
1.4
1.5 static gboolean mmu_ext_page_remapped( sh4addr_t page, mem_region_fn_t fn, void *user_data )
1.6 {
1.7 - int i;
1.8 + unsigned int i;
1.9 if( (MMIO_READ(MMU,MMUCR)) & MMUCR_AT ) {
1.10 /* TLB on */
1.11 sh4_address_space[(page|0x80000000)>>12] = fn; /* Direct map to P1 and P2 */
1.12 @@ -873,7 +873,8 @@
1.13 if( fn >= &mmu_utlb_pages[0].fn && fn < &mmu_utlb_pages[UTLB_ENTRY_COUNT].fn ) {
1.14 return ((struct utlb_page_entry *)fn) - &mmu_utlb_pages[0];
1.15 }
1.16 - } else if( fn == &mem_region_tlb_multihit ) {
1.17 + }
1.18 + if( fn == &mem_region_tlb_multihit ) {
1.19 return -2;
1.20 } else {
1.21 return -1;
.