5.3 Processor Exceptions

Virtual Coherency Exception


Cause

A Virtual Coherency exception occurs when all of the following conditions are true:

This exception is not maskable.

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.



Copyright 1996, MIPS Technologies, Inc. -- 21 MAR 96

Generated with CERN WebMaker
statistics