发明名称 Store forwarding cache
摘要 A load request is received to retrieve a piece of data from a location in memory and the load request follows one or more store requests in a set of instructions to store a piece of data in the location in memory. One or more possible locations in a cache for a piece of data corresponding to the location in memory is determined. Each possible location of the one or more possible locations in the cache is determined. It is then determined if at least one location of the one or more possible locations contains data to be stored in the location in memory. Data in one location of the at least one location is loaded, the data in the one location is from a store request of the one or more store requests and the store request is closest in the set of instructions to the load request.
申请公布号 US9471504(B2) 申请公布日期 2016.10.18
申请号 US201615155493 申请日期 2016.05.16
申请人 International Business Machines Corporation 发明人 Alexander Khary J.;Hsieh Jonathan T.;Jacobi Christian;Mitchell James R.
分类号 G06F12/08;G06F12/12 主分类号 G06F12/08
代理机构 代理人 Jochym Alexander G.
主权项 1. A computer program product for executing a load with store forwarding data, the computer program product comprising: one or more computer readable non-transitory storage media; and program instructions stored on the one or more computer readable non-transitory storage media, the program instructions comprising: program instructions to receive a load request, wherein the load request is a request to retrieve a piece of data from a location in memory, and wherein the load request follows one or more store requests in a set of instructions to store a piece of data in the location in memory, and wherein memory is one or more of the following: volatile computer readable storage media, non-volatile computer readable storage media, random access memory (RAM), cache, optical and magnetic drives, thumb drives, or smart cards;program instructions to determine one or more possible locations in a cache for a piece of data corresponding to the location in memory, wherein the cache is an n-way associative cache, and wherein the cache contains a plurality of entries and wherein each entry includes the following: a logical address tag, a directory hit way tag, an instruction age/identifier tag, a byte validity indicator, and store data;program instructions to utilize a table, wherein the table includes a list of all store requests, processed but not retired, in the set of store instructions to store a piece of data in the location in memory;program instructions to determine whether the one or more possible locations contain data corresponding to each store request of the store requests in the table;responsive to determining the one or more possible locations does not contain data corresponding to each store request of the store requests in the table, program instructions to reject the loaded data;responsive to determining the one or more possible locations in the cache, program instructions to read each possible location of the one or more possible locations in the cache;program instructions to determine if at least one location of the one or more possible locations contains data to be stored in the location in memory;responsive to determining that the at least one location of the one or more possible locations contains data to be stored in the location in memory, program instructions to load data in one location of the at least one location, wherein the data in the one location is from a store request of the one or more store requests, and wherein the store request is closest in the set of instructions to the load request;program instructions to determine that the loaded data contained a portion of total data requested by the load request; andresponsive to determining the loaded data contained a portion of total data requested by the load request, program instructions to load, from memory, a remaining portion of the total data requested by the load request.
地址 Amonk NY US