Method and system for handling cache coherency for self-modifying code
Abstract
A method for handling cache coherency includes allocating a tag when a cache line is not exclusive in a data cache for a store operation, and sending the tag and an exclusive fetch for the line to coherency logic. An invalidation request is sent within a minimum amount of time to an I-cache, preferably only if it has fetched to the line and has not been invalidated since, which request includes an address to be invalidated, the tag, and an indicator specifying the line is for a PSC operation. The method further includes comparing the request address against stored addresses of prefetched instructions, and in response to a match, sending a match indicator and the tag to an LSU, within a maximum amount of time. The match indicator is timed, relative to exclusive data return, such that the LSU can discard prefetched instructions following execution of the store operation that stores to a line subject to an exclusive data return, and for which the match is indicated.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 21.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for handling cache coherency for self-modifying code, comprising: allocating a program store compare (PSC) tag by a load store unit (LSU) in response to determining a cache line is not exclusive in a data cache for a store operation; sending the PSC tag with an exclusive fetch for the cache line to coherency logic; sending a cache invalidation request that includes an address to be invalidated, the PSC tag, and an indicator specifying the request is for a PSC operation; receiving at an instruction cache the cache invalidation request and comparing the requested address with an address
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 21 total)
References Cited — Backward Prior Art (2)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 6,732,237 B1 | Multi-tier caching system | 2004 | 128 |
| US 6,865,645 B1 | Program store compare handling between instruction and operand caches | 2005 | 27 |
Non-Patent Literature (1)
- z/Architecture, Principles of Operation, Sixth Edition, Apr. 2007, Publication No. SA22-7832-05, copyright IBM Corp. 1990-2007, pp. 1-1218.