Search
lxdream.org :: lxdream :: r589:045ba6eb6df1
lxdream 0.9.1
released Jun 29
Download Now
changeset589:045ba6eb6df1
parent588:978ec0b33545
child590:4db6a084ca3c
authornkeynes
dateWed Jan 16 09:37:47 2008 +0000 (12 years ago)
Fix vma lookups after itlb exception
src/sh4/sh4core.h
1.1 --- a/src/sh4/sh4core.h Wed Jan 16 09:37:08 2008 +0000
1.2 +++ b/src/sh4/sh4core.h Wed Jan 16 09:37:47 2008 +0000
1.3 @@ -65,6 +65,12 @@
1.4 */
1.5 #define GET_ICACHE_PHYS(addr) (sh4_icache.page_ppa + ((addr)-sh4_icache.page_vma))
1.6
1.7 +/**
1.8 + * Return the virtual (vma) address for the first address past the end of the
1.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 );
.