Search
lxdream.org :: lxdream/src/sh4/sh4core.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.h
changeset 589:045ba6eb6df1
prev586:2a3ba82cf243
next591:7b9612fd2395
author nkeynes
date Wed Jan 16 09:37:47 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix vma lookups after itlb exception
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.h Tue Jan 15 20:50:23 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 );
.