revision 589:045ba6eb6df1
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 589:045ba6eb6df1 |
parent | 588:978ec0b33545 |
child | 590:4db6a084ca3c |
author | nkeynes |
date | Wed Jan 16 09:37:47 2008 +0000 (16 years ago) |
Fix vma lookups after itlb exception
src/sh4/sh4core.h | view | annotate | diff | log |
1.1 --- a/src/sh4/sh4core.h Wed Jan 16 09:37:08 2008 +00001.2 +++ b/src/sh4/sh4core.h Wed Jan 16 09:37:47 2008 +00001.3 @@ -65,6 +65,12 @@1.4 */1.5 #define GET_ICACHE_PHYS(addr) (sh4_icache.page_ppa + ((addr)-sh4_icache.page_vma))1.7 +/**1.8 + * Return the virtual (vma) address for the first address past the end of the1.9 + * cache entry. Assumes that there is in fact a current icache entry.1.10 + */1.11 +#define GET_ICACHE_END() (sh4_icache.page_vma + (~sh4_icache.mask) + 1)1.12 +1.13 /* SH4 module functions */1.14 void sh4_init( void );1.15 void sh4_reset( void );
.