发明名称 A method and apparatus for prefetching instructions
摘要 <p>A processor and method that reduces instruction fetch penalty in the execution of a program sequence of instructions comprises a prefetch instruction that is inserted into the program at a location which precedes the instructions to be prefetched. The prefetch instruction is defined by an opcode that specifies a target field, a count field, a cache level field, a flush field, and a trace field. A block of target instructions, starting at the target address and continuing until the count is reached, is prefetched into the instruction cache of the processor so that the instructions are available for execution prior to execution of the instruction specified by the target address. The trace field specifies a vector of a path in the program sequence that leads from the prefetch instruction to the target address, and allows the prefetch operation to be aborted if the vector is not taken. The cache level field specifies the level of the cache memory into which the instructions are to be prefetched. Finally, the flush field indicates whether all preceding prefetch operations should be discarded. The present invention exposes the prefetch mechanism of the processor to the compiler, thereby increasing performance. By allowing the compiler to schedule appropriate prefetch instructions, the present invention reduces latency by increasing the likelihood that instructions will be in the cache when they are executed, while reducing cache pollution and conserving bandwidth by only prefetching instructions that are likely to be executed.</p>
申请公布号 EP1096371(A1) 申请公布日期 2001.05.02
申请号 EP20000309127 申请日期 2000.10.17
申请人 HEWLETT-PACKARD COMPANY, A DELAWARE CORPORATION 发明人 MORRIS, DALE C.;UNDY, STEPHEN R.;CALLISTER, JAMES R.
分类号 G06F12/08;G06F9/38;G06F9/45;(IPC1-7):G06F9/38 主分类号 G06F12/08
代理机构 代理人
主权项
地址