Hello,
1. when cache is enabled (NOT bypassed on the CACHE_CONFIG register) and a page is active, is it OK to enable and disable the cached/non-cached attribute on an AMMU page policy register while currently running and using (program & data) the same page (both PC and SP ,... are within the page) if writing back all dirty lines and invalidating the cache prior to disabling it (bit 16 on the policy register)?
The mapping for the CPU will stay the same but is there something else that might forbid doing so?
2. Regarding AMMU - i understand that smaller pages have priority over larger ones when they have overlapping regions. what i am not sure is what happens if if have for example two large pages with overlapping regions but different attributes? what if one of the large pages is configures with the larger page size and the other to the smaller - i.e one large page is 512M and another 32M and the range of the 32M page is inside the 512M page? will the 32M take priority or is it illegal?
Thanks
Guy