摘要 |
<p>A method and apparatus optimize the performance of a multiple cache system computer (Fig. 1) having separate caches for data (60) and instructions (50) in which all writes to the data cache are monitored. If an address tag of the item being written matches one of a list of tags (110) representing valid instructions currently stored in the instruction cache (50), a flag (120) called I-FLUSH-ON-REI is set. Until this flag (120) is set, REI (Return from Exception or Interrupt) instruction will not flush the instruction cache (50). When the flag (120) is set, an REI command will also flush or clear the instruction cache (50). Thus, the instruction cache (50) is only flushed when an address referenced by an instruction is modified, so as to reduce the number of times the cache is flushed and optimize the computer's speed of operation.</p> |