filename | src/sh4/mmu.c |
changeset | 669:ab344e42bca9 |
prev | 597:87cbdf62aa35 |
next | 736:a02d1475ccfd |
author | nkeynes |
date | Mon May 12 10:00:13 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Cleanup most of the -Wall warnings (getting a bit sloppy...) Convert FP code to use fixed banks rather than indirect pointer (3-4% faster this way now) |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/mmu.c Tue Jan 22 09:45:21 2008 +00001.2 +++ b/src/sh4/mmu.c Mon May 12 10:00:13 2008 +00001.3 @@ -20,6 +20,7 @@1.4 #include <stdio.h>1.5 #include "sh4/sh4mmio.h"1.6 #include "sh4/sh4core.h"1.7 +#include "sh4/sh4trans.h"1.8 #include "mem.h"1.10 #define VMA_TO_EXT_ADDR(vma) ((vma)&0x1FFFFFFF)1.11 @@ -119,6 +120,7 @@1.12 case TLB_SIZE_4K: return MASK_4K;1.13 case TLB_SIZE_64K: return MASK_64K;1.14 case TLB_SIZE_1M: return MASK_1M;1.15 + default: return 0; /* Unreachable */1.16 }1.17 }1.19 @@ -327,7 +329,7 @@1.20 * Find a UTLB entry for the associative TLB write - same as the normal1.21 * lookup but ignores the valid bit.1.22 */1.23 -static inline mmu_utlb_lookup_assoc( uint32_t vpn, uint32_t asid )1.24 +static inline int mmu_utlb_lookup_assoc( uint32_t vpn, uint32_t asid )1.25 {1.26 int result = -1;1.27 unsigned int i;1.28 @@ -349,7 +351,7 @@1.29 * Find a ITLB entry for the associative TLB write - same as the normal1.30 * lookup but ignores the valid bit.1.31 */1.32 -static inline mmu_itlb_lookup_assoc( uint32_t vpn, uint32_t asid )1.33 +static inline int mmu_itlb_lookup_assoc( uint32_t vpn, uint32_t asid )1.34 {1.35 int result = -1;1.36 unsigned int i;
.