
5.3 Processor Exceptions

A Virtual Coherency exception occurs when all of the following conditions are true:
Processing
The common exception vector is used for this exception.
The VCEI or VCED code in the Cause register is set for instruction and data cache misses respectively.
The BadVAddr register holds the virtual address that caused the exception.
Virtual Coherency exception processing is shown in Figure 5-17.
Servicing
Using the appropriate CACHE instruction(s), the primary cache line at both the previous and the new virtual index should be invalidated*1 (and written back, if necessary), and the PIDx field of the secondary cache should be written with the new virtual index. Once completed, the program continues.
Software can avoid the cost of this exception by using consistent virtual primary cache indexes to access the same physical data.
This exception is not maskable.





Generated with CERN WebMaker
![]()