Consistently specifying way destinations through prefetching hints
First Claim
Patent Images
1. In a processor with an n-way cache, a method for prefetching comprising the steps of:
- issuing a prefetch instruction, wherein said prefetch instruction includes a hint field and address information;
addressing the cache using said address information contained in said prefetch instruction;
indicating a cache miss for desired data that is addressed by said prefetch instruction;
specifying a refill destination for said desired data with a first portion of said hint field, wherein said destination is a first way in said cache when said desired data is streamed data and a second way in said cache when said desired data is retained data, said first portion being operable in subsequent prefetch instructions to consistently specify such way destinations for subsequent streamed and retained data; and
refilling said cache with said desired data.
7 Assignments
0 Petitions
Accused Products
Abstract
A processor capable of executing prefetching instructions containing hint fields is provided. The hint fields contain a first portion which enables the selection of a destination indicator for refill operations, and a second portion which identifies a destination. The portion of the hint field identifying a destination may be applied to consistently direct streamed and retained data to select portions of a cache. As a result, one type of data (e.g., retained) is lees likely to be replaced by another type of data (e.g., streamed) and vice versa.
-
Citations
20 Claims
-
1. In a processor with an n-way cache, a method for prefetching comprising the steps of:
-
issuing a prefetch instruction, wherein said prefetch instruction includes a hint field and address information; addressing the cache using said address information contained in said prefetch instruction; indicating a cache miss for desired data that is addressed by said prefetch instruction; specifying a refill destination for said desired data with a first portion of said hint field, wherein said destination is a first way in said cache when said desired data is streamed data and a second way in said cache when said desired data is retained data, said first portion being operable in subsequent prefetch instructions to consistently specify such way destinations for subsequent streamed and retained data; and refilling said cache with said desired data. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A processor comprising:
-
a decoder for decoding a prefetch instruction, wherein said prefetch instruction includes a hint field and address information; a first n-way set-associative cache, coupled to said decoder, containing a first-cache line that is addressed using said address information; a first comparator, coupled to said first n-way set associative cache, for indicating a first-cache miss when said first-cache line is addressed and does not contain desired data; and a first multiplexer, coupled to said first n-way set-associative cache, for choosing a first destination indicator used to direct refilling of said first-cache line with said desired data, said first destination indicator being chosen from a first portion of said hint field and a first LRU bit, said first portion specifying a first way for desired data identified as streamed data and a second way for desired data identified as retained data, and said first LRU bit specifying a destination way for desired data identified as neither streamed nor retained data, said first portion being operable in subsequent refill operations to consistently specify first and second way destinations for subsequent streamed and retained data, respectively. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14, 20)
-
-
15. A processor comprising:
-
a decoder for decoding a prefetch instruction, said prefetch instruction including a hint field and being used to refill desired data to a first n-way cache; and a first multiplexer, coupled to said decoder, for choosing a first destination indicator used to direct refilling of said first cache with said desired data, said first destination indicator being chosen from a first portion of said hint field and an alternative indicator under control of a second portion of said hint field, said first portion specifying a first way for desired data identified as streamed data and a second way for desired data identified as retained data, said first portion being operable in subsequent refill operations to consistently specify first and second way destinations for subsequent streamed and retained data, respectively. - View Dependent Claims (16, 17, 18, 19)
-
Specification