Prefetching hints
View Patent ↗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.
1. A method comprising:
issuing an instruction, wherein said instruction includes a hint field, a base field and an offset field;
forming an address to access data in a cache, wherein said address is formed by using information contained in said offset and base fields; and
prefetching said data, when unavailable in said cache, in accordance with hint information contained in said hint field, wherein said hint information indicates an expected use of said data and a destination for said data, and said hint information is independent of said address.
2. The method of claim 1 wherein said address is a virtual address.
3. The method of claim 1 wherein said hint information indicates said data is expected to be not reused extensively and directs said data to a certain way destination in said cache.
4. The method of claim 1 wherein said hint information indicates said data is expected to be reused extensively and directs said data to a certain way destination in said cache.
5. The method of claim 1 wherein said hint information directs said data to (a) a first way destination when said data is expected to be not reused extensively, and (b) a second way destination when said data is expected to be reused extensively.
6. The method of claim 1 wherein said hint information directs said data to (a) a first way destination when said data is expected to be loaded but not reused extensively or said data is expected to be stored or modified but not reused extensively, and (b) a second way destination when said data is expected to be loaded and reused extensively or said data is expected to be stored or modified and reused extensively.
7. A method comprising:
issuing an instruction, wherein said instruction includes a hint field, a base field and an index field;
forming an address to access data in a cache, wherein said address is formed by using information contained in said index and base fields; and
prefetching said data, when unavailable in said cache, in accordance with hint information contained in said hint field, wherein said hint information indicates an expected use of said data and a destination for said data, and said hint information is independent of said address.
8. The method of claim 7 wherein said address is a virtual address.
9. The method of claim 7 wherein said hint information indicates said data is expected to be not reused extensively and directs said data to a certain way destination in said cache.
10. The method of claim 7 wherein said hint information indicates said data is expected to be reused extensively and directs said data to a certain way destination in said cache.
11. The method of claim 7 wherein said hint information directs said data to (a) a first way destination when said data is expected to be not reused extensively, and (b) a second way destination when said data is expected to be reused extensively.
12. The method of claim 7 wherein said hint information directs said data to (a) a first way destination when said data is expected to be loaded but not reused extensively or said data is expected to be stored or modified but not reused extensively, and (b) a second way destination when data is expected to be loaded and reused extensively or said data is expected to be stored or modified and reused extensively.