Weak cache line invalidation requests for speculative execution of instructions
The 'weak exclusive read request' mechanism in microprocessors addresses inefficient cache line invalidations during speculative execution by enabling memory controllers to make informed decisions, optimizing performance and reducing reacquisition costs.
Patent Information
- Application Number
- JP2024518281
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-30
- Filing Date
- 2022-08-24
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2042-08-24
AI Technical Summary
In modern microprocessors with speculative execution, the invalidation of cache lines during speculative store instructions can be wasteful when the execution is later determined to be incorrect, leading to unnecessary cache line reacquisition across memory hierarchies.
Implementing a 'weak exclusive read request' mechanism that allows memory controllers to selectively invalidate cache lines based on cost and other factors, distinguishing it from a 'strong exclusive read request' that ensures eventual cache line acquisition.
Reduces wasteful cache line invalidations by allowing memory controllers to make informed decisions on invalidation, optimizing performance and reducing unnecessary reacquisition costs.
Smart Images

Figure 2024535079000001
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims the benefit of U.S. Patent Application No. 17 / 490,910, filed September 30, 2021, the contents of which are incorporated by reference as if fully set forth herein. [Background technology]
[0002] Modern microprocessors implement a variety of features for high throughput. Some such features include having a highly parallel architecture and performing speculative execution. Improvements to such technology are constantly being made.
[0003] A more detailed understanding may be had from the following description, given by way of example in conjunction with the accompanying drawings, in which: [Brief description of the drawings]
[0004] [Figure 1] FIG. 1 is a block diagram of an example device capable of implementing one or more features of the present disclosure. [Diagram 2] FIG. 2 is a block diagram of an instruction execution pipeline disposed within the processor of FIG. 1. [Diagram 3] FIG. 1 is a block diagram of a computer system, according to an example. [Figure 4] FIG. 2 is a block diagram of a computer system capable of performing a weak exclusive read, according to another example. [Diagram 5] FIG. 13 illustrates operations for a weak exclusive read operation, according to an example. [Figure 6] 1 is a flow diagram of a method for performing a weak exclusive read operation, according to an example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0005] Techniques for invalidating cache lines are provided that include issuing a weak exclusive read request for a speculatively executed store instruction to a first level of a memory hierarchy, determining whether to invalidate one or more cache lines associated with the store instruction in one or more memories, and issuing the weak invalidation requests to additional levels of the memory hierarchy.
[0006] 1 is a block diagram of an example device 100 in which aspects of the disclosure may be implemented. Device 100 may include, for example, a computer, a gaming device, a handheld device, a set-top box, a television, a mobile phone, or a tablet computer. Device 100 includes one or more processors 102, a memory hierarchy 104, a storage device 106, one or more input devices 108, and one or more output devices 110. Device 100 may also include optional input drivers 112 and output drivers 114. It should be understood that device 100 may include additional components not shown in FIG. 1.
[0007] The one or more processors 102 may include a central processing unit (CPU), a graphics processing unit (GPU), a CPU and a GPU located on the same die, or one or more processor cores, each processor core being a CPU or a GPU. In some examples, the one or more processors 102 may include any number of processors. In some examples, the one or more processors 102 may include one or more processor chips. In some examples, each processor chip may include one or more processor cores.
[0008] Some or all of memory hierarchy 104 may be located on the same die as one or more of the one or more processors 102, or may be partially or completely separate from the one or more processors 102. Memory hierarchy 104 may include, for example, one or more caches, one or more volatile memories, one or more non-volatile memories, and / or other memories, including one or more types of one or more random access memories (RAMs).
[0009] In some examples, elements of memory hierarchy 104 are arranged in a hierarchy that includes elements of one or more processors 102. Examples of such arrangements are provided in Figures 3 and 4.
[0010] Storage devices 106 include fixed or removable storage devices (e.g., hard disk drives, solid state drives, optical disks, flash drives). Input devices 108 include keyboards, keypads, touch screens, touch pads, detectors, microphones, accelerometers, gyroscopes, biometric scanners, or network connections (e.g., wireless local area network cards for transmitting and / or receiving wireless IEEE 802 signals). Output devices 110 include displays, speakers, printers, haptic feedback devices, one or more optics, antennas, or network connections (e.g., wireless local area network cards for transmitting and / or receiving wireless IEEE 802 signals).
[0011] The input driver 112 communicates with the processor 102 and the input device 108, allowing the processor 102 to receive input from the input device 108. The output driver 114 communicates with the processor 102 and the output device 110, allowing the processor 102 to send output to the output device 110. It should be noted that the input driver 112 and the output driver 114 are optional components and that the device 100 operates in the same manner when the input driver 112 and the output driver 114 are not present.
[0012] Figure 2 is a block diagram of an instruction execution pipeline 200 located within one or more of the processors 102 of Figure 1. In various examples, any of the processor cores of one or more of the processors 102 of Figure 1 may be implemented as shown in Figure 2.
[0013] Instruction execution pipeline 200 retrieves instructions from memory, executes the instructions, outputs data to memory, and changes the state of elements in instruction execution pipeline 200 , such as registers in register file 218 .
[0014] The instruction execution pipeline 200 includes an instruction fetch unit 204 configured to fetch instructions from a system memory (such as memory 104) via an instruction cache 202, a decoder 208 configured to decode the fetched instructions, functional units 216 configured to perform calculations to process the instructions, a load store unit 214 that loads or stores data from or to the system memory via a data cache 220, and a register file 218 including registers that store working data for the instructions. A reorder buffer 210 tracks instructions that are currently in-flight and ensures in-order retirement of instructions while allowing out-of-order execution while in-flight. An "in-flight" instruction refers to an instruction that has been received by the reorder buffer 210 but has not yet had its result committed to the processor's architectural state (e.g., written to a register file, etc.). A reservation station 212 maintains the in-flight instructions and tracks the instruction operands. When all operands are ready for execution of a particular instruction, reservation stations 212 send the instruction to functional units 216 or load / store units 214 for execution. Completed instructions are marked for retirement in reorder buffer 210 and are retired when they are at the head of reorder buffer queue 210. Retirement refers to the act of committing the result of an instruction to the architectural state of the processor. For example, writing an addition result to a register via an add instruction, writing a loaded value to a register via a load instruction, or causing instruction flow to jump to a new location via a branch instruction are all examples of retiring an instruction.
[0015] The various elements of instruction execution pipeline 200 communicate via a common data bus 222. For example, functional units 216 and load / store unit 214 write results to common data bus 222, which may be read by reservation stations 212 for execution of dependent instructions and by reorder buffer 210 as final processing results for in-flight instructions that have finished executing. Load / store unit 214 also reads data from common data bus 222. For example, load / store unit 214 reads results from completed instructions from common data bus 222 and writes the results to memory via data cache 220 for store instructions.
[0016] Instruction execution pipeline 200 executes some instructions speculatively, meaning that instruction execution pipeline 200 performs at least some actions in order to execute an instruction, but maintains the ability to reverse the effects of such execution if the instruction is incorrectly executed.
[0017] In one example, the instruction execution pipeline 200 may perform branch prediction. Branch prediction is the act of the instruction fetch unit 204 predicting a control flow path along which execution will flow and fetching instructions from that path. There are many ways to perform prediction, some involving maintaining a global or address-specific branch path history (e.g., a history of whether a branch is taken and / or the target of such a branch) and performing various operations using such history. The execution pipeline (e.g., functional units 216) actually executes the branch to determine the correct outcome of such a branch. An instruction from a predicted execution path is executed, but before the functional units 216 actually determine the correct execution path, such an instruction is considered to be speculatively executed because it is possible that such an instruction should not actually be executed. There are many other reasons why an instruction may be executed speculatively.
[0018] Store instructions may be executed speculatively by performing various operations for an instruction but not committing such operations until the instruction becomes non-speculative. In one example, speculatively executing a store instruction includes placing the instruction in load / store unit 214, determining the data to store, and determining the address to store the data to (which may involve address calculation and address translation). During this time, reorder buffer 210 holds the store instruction and does not allow the instruction to be retired (commit the result) until the store instruction becomes non-speculatively executed.
[0019] An instruction may be speculatively executed for a variety of reasons, such as being executed on a predicted branch control flow path, or for a variety of other reasons. Part of the execution of a store instruction involves writing the data to be stored to the cache. To do this, the cache controller acquires exclusive access to the appropriate cache line and then writes the specified data to that cache line. Acquiring exclusive access to the appropriate cache line involves causing other caches (e.g., all other caches) to invalidate their cache line copies. Doing this prevents conflicting versions of the data in that cache line from existing in different cache memories. In the modified, exclusive, shared, invalid (MESI) protocol, the instruction execution pipeline 200 that executes the store acquires exclusive access to the cache line, and other units are configured to invalidate their cache line copies.
[0020] The instruction execution pipeline 200 is an out-of-order execution pipeline that attempts to execute various operations of an instruction early. One example of such an operation is the invalidation described above. Specifically, for execution of a store instruction, the instruction execution pipeline 200 is permitted to, and often does, request invalidation of other memory copies of a cache line early in the execution of the store instruction, so that when the store instruction is ready to write the associated data, the instruction execution pipeline 200 does not have to wait as long as if the invalidation were performed later. However, a problem arises when speculative execution of a store instruction is performed. Specifically, as described above, it is possible for the instruction execution pipeline 200 to request invalidation of a cache line in order to speculatively execute a store instruction, and to make such a request before the store instruction is actually ready to write the data. However, it is possible that the speculative execution of the store instruction is actually incorrect. For example, the store instruction may have been executed on an incorrectly predicted control flow path (such as past a branch not taken point where the branch is actually taken). In this case, invalidating various copies of the involved cache lines to various memories may be futile, as those various memories may need to reacquire those cache lines in a shared or exclusive state.
[0021] For at least this reason, an operation called a "weak exclusive read request" is described herein. A weak exclusive read request is a request to invalidate a cache line, but various memories or memory controllers may refuse to perform the invalidation. Various factors may be taken into account when determining whether various memories or memory controllers perform the requested verification. Some examples of such factors include the number of memories in which the cache line resides and therefore the memory in which the cache line is invalidated, and the "cost" of performing the invalidation, which represents the degree of additional work performed to reacquire the cache line that is wasted if the store instruction is incorrectly executed speculatively. Some example measures of the cost include the latency to reacquire the cache line, the latency or bandwidth limitations of the invalidation message, or other factors. A weak exclusive read request is in contrast to a strong exclusive read request, which all memories actually obey. In some examples, strong exclusive read requests are made for store instructions that are not speculatively executed and for store instructions that were speculatively executed but become non-speculatively executed (such as when it is confirmed that the predicted control flow path after a branch is determined to be the correct control flow path). In summary, in some examples where instruction execution pipeline 200 speculatively executes a store instruction, instruction execution pipeline 200 issues weak exclusive read requests to various memories, including the cache line to which the store instruction is written. Any or all of the various memories may or may not honor the weak exclusive read request based on one or more factors. At a later point in time, such as when execution of the store instruction is no longer speculative, instruction execution pipeline 200 issues a strong exclusive read request that causes the memory that stores the cache line to invalidate the cache line so that instruction execution pipeline 200 executing the store instruction can acquire the cache line in an exclusive state to write the appropriate data. Additional details are now provided.
[0022] Figure 3 is a block diagram of a computer system 300, according to one example. In some examples, computer system 300 is computer system 100 of Figure 1. Computer system 300 includes a processor set 302, one or more system level memories 304, a system memory controller 306, and other system elements 308.
[0023] Processor set 302 includes one or more processor chips 310. Each processor chip 310 includes a processor chip level cache 312 and one or more processor cores 314. Each processor core 314 has an associated core level cache 316. Each of the processor cores 314 includes one or more execution pipelines, such as instruction execution pipeline 200 of FIG. 2.
[0024] The caches and memories shown in FIG. 3 operate in parallel and therefore use a coherence protocol to ensure data coherence. One example of such a protocol is the Modified-Exclusive-Shared-Invalid (MESI) protocol. Each cache line contains an indication of one of these four states. The Modified state indicates that the copy of the cache line stored in the particular cache has been modified with respect to the copy stored in the backing memory, and therefore the cache line must be written to the backing memory if the cache line is to be evicted. The Exclusive state indicates that the cache line is stored in the particular cache and is not stored in any other cache at the same level of the hierarchy. Note that a cache line marked as exclusive may be stored at a higher level of the hierarchy. For example, a cache line stored in an Exclusive state in a level 0 cache may also be stored in a level 1 cache immediately above the level 0 cache. The Shared state indicates that the cache line is stored in multiple caches at the same level of the hierarchy. The invalid state indicates that the cacheline is not valid within the particular cache in which it is marked invalid (although another cache may store a valid copy of the cacheline).
[0025] Each processor core 314 has an associated core level cache 316. When a processor core 314 executes a memory operation, such as a load or store operation, the processor core 314 determines whether a cache line that stores data for the memory operation is located in the core level cache 316 associated with the processor core 314. If such a cache line is not located in the core level cache 316, the core level cache 316 attempts to fetch the cache line into the core level cache 316 from a higher level cache, such as the processor chip level cache 312. The processor chip level cache 312 acts as both a higher level cache memory and a controller that manages a coherence protocol for the processor chip level cache 312 and all core level caches 316 in the same processor chip 310. Thus, the processor chip level cache 312 checks itself to determine whether a requested cache line is stored in the processor chip level cache 312 in order to provide the cache line to the requesting processor core 314. The processor chip-level cache 312 provides cache lines to a requesting core 314 either from its own contents or after being fetched from memory higher in the hierarchy.
[0026] The processor chip level cache 312 manages a coherence protocol for the core level cache 316. In general, the processor chip level cache 312 manages the protocol state of cachelines in the core level cache 316 such that if any cacheline is in an exclusive state in a particular core level cache 316, no other core level cache 316 has that cacheline in any state other than invalid. Multiple core level caches 316 are permitted to have cachelines in a shared state.
[0027] The protocol operates on a level-by-level basis. More specifically, at each level of the memory hierarchy, each element within that level is permitted to have cache lines in some subset of the protocol's states. In one example, at the level of the processor set 302, each chip 310 (and therefore each processor chip level cache 312) is permitted to have cache lines in one of several states, such as shared or exclusive. The controller for a particular level of the hierarchy manages the protocol at that level. Thus, the processor set memory 320 manages the state of the processor chip level cache 312. The processor chip level cache 312 of any particular processor chip 310 manages the state of the core level cache 316, and the system memory controller 306 manages the state of the processor set 302 and other system elements 308 that may store a particular cache line.
[0028] When a processor core 314 executes a store instruction, the processor core 314 requests that the cache line containing the data to be written be placed in the associated core level cache 316 in an exclusive state. Part of satisfying this requirement includes requesting that all other caches (other than the cache "directly above" the core level cache 316) invalidate their copies of the cache line. If the store instruction is speculatively executed, the core level cache 316 issues a weak exclusive read. Each cache is permitted to ignore this weak exclusive read and therefore not invalidate its copy of the cache line. As described elsewhere, if the store instruction is no longer speculatively executed, the processor core 314 issues a strong exclusive read and the other caches invalidate their copies in response to the strong exclusive read.
[0029] In some embodiments, weak exclusive reads are handled individually by different levels of the memory hierarchy. More specifically, weak exclusive reads propagate up through the hierarchy, and at each level, the controller for that level (e.g., processor chip level cache 312, processor set memory 320, or system memory controller 306) makes a decision regarding whether to fulfill or not fulfill the request for the memories in that hierarchy. The controller then controls their memories to fulfill or not fulfill the request based on the decision. Since each level can determine whether to fulfill the request individually, it is possible for one level of memory to fulfill the request by invalidating the appropriate cache lines, while a different level of memory does not invalidate the appropriate cache lines. In one example, the core level cache 316 of the same processor chip 310 as the requesting core 314 invalidates their cache lines, but none of the core level caches 316 of the other processor chips 310 invalidates their cache lines, and none of the other system elements 308 invalidates their cache lines.
[0030] 4 is a block diagram of a computer system 400 capable of performing weak exclusive reads, according to another example. The system 400 includes one or more lowest levels of the hierarchy (a primary processor-memory hierarchy level 402), one or more next higher level secondary processor-memory hierarchy levels 404 arranged in a hierarchy, one or more tertiary processor-memory hierarchy levels 406, and optionally additional hierarchy levels 408 not shown.
[0031] At the lowest level, primary processor-memory hierarchy level 402 includes one or more processor-memory elements 410. Each processor-memory element 410 includes a processing element 412 and a processing element-specific memory 414. In the course of executing software, processing elements 412 speculatively execute store instructions and issue corresponding weak read exclusive operations, and processing elements 412 issue strong read exclusive operations when store instructions are not speculatively executed.
[0032] Each level of the hierarchy includes a level-specific memory (e.g., primary memory 416, secondary memory 418, and tertiary memory 420) that determines how to respond to a weak exclusive read operation. As described elsewhere herein, each level of memory is permitted to either perform or reject the weak exclusive read operation by invalidating corresponding cache lines in its "children" of that level-specific memory or not invalidating those cache lines, based on a determination that takes into account factors such as how many cache lines the memory stores that are valid when the request is received, what the "cost" would be to invalidate cache lines in a particular memory, and / or other factors (in some embodiments, "reject" means not performing the weak exclusive read operation and notifying the requester of such rejection).
[0033] System 300 of Figure 3 is an example of system 400 of Figure 4. Thus, while Figure 3 illustrates particular types of hierarchical level elements, such as cores, chips, etc., the hierarchical levels of Figure 4 do not necessarily include similar elements or groupings of elements. Processing element 412 is a set of one or more processors, such as a processor core or a group of processor cores, and each memory hierarchy level is a hierarchical grouping of such processors.
[0034] The system 300 of FIG. 3 is an example of the system 400 of FIG. 4. The processor core 314 is an example of a processing element 412. The core level cache 316 is an example of a processing element specific memory 414. The processor chip 310 is an example of a first processor memory hierarchy level 402, and the processor chip level cache 312 is an example of a first level specific memory block 416. The processor set 302 is an example of a second processor-memory hierarchy level 404, and the processor set memory 320 is an example of a second level specific memory block 418. The computer system 300 is an example of a third processor-memory hierarchy level 406, and the system memory controller 306, along with the internal memory of the other system elements 308 and the processor set 302, is an example of a third level specific memory block 420. Additional hierarchy levels 408 may correspond to additional computer systems networked to the computer system 300. System 300 of FIG. 3 is an example of system 400 of FIG. 4, although it should be understood that system 400 of FIG. 4 is not limited to any particular details of system 300 of FIG.
[0035] 5 illustrates the operations for a weak exclusive read operation, according to one example. The processor-memory element 410 at the bottom left of the diagram speculatively executes a store instruction and therefore issues a weak request for exclusive ownership to the first level native memory block 402. The first level native memory block 402 makes a decision as to whether to command other processor memory elements 410 at the command of the first level native memory block 402 to invalidate the cache line. The first level native memory block 402 (or any memory block) can independently determine whether any of its directly commanded elements (e.g., the processor memory element 410 for the first level native memory block 402, the first processor-memory hierarchy level 402 for the second level native memory block 418, the second processor-memory hierarchy level 404 for the third level native memory block 420, etc.) should invalidate the cache line in question. For example, the first level native memory block 402 may determine that one processing element native memory 414 should invalidate its copy of the cache line while another processing element native memory 414 should not invalidate its copy of the cache line. The unit may make this determination in any technically feasible manner, such as by considering certain performance factors, such as the amount of work or time required to reacquire the cache line, the number of directly commanded elements that actually store the cache line, or other factors. It is also possible for any level of memory block (e.g., the second level native memory block 404) to make these determinations individually.
[0036] In addition, since obtaining exclusive access includes only a single copy of that cache line in any lowest level cache, the first level native memory block 402 sends another request up the hierarchy for further distribution. Specifically, the first level native memory block 402 sends a weak request for exclusive ownership to the second level native memory block 404. The second level native memory block 404 makes a determination as to whether to issue a cache line invalidation command to any of the one or more first level native memory blocks 402 at the direct command of the second level native memory block 404 based on any of a variety of factors, such as those described elsewhere herein, and sends or does not send such a command. The second level native memory block 404 also sends a weak request for exclusive ownership to additional hierarchical levels (e.g., a third level) in a similar manner. In the case of a level-specific memory block receiving a weak request for exclusive ownership from a higher block in the hierarchy, the level-specific memory block determines whether to issue such an invalidation command to the block (processor memory element 410 or the level-specific memory block) based on factors described herein.
[0037] 6 is a flow diagram of a method 600 for performing a weak exclusive read operation, according to an example. Although described with respect to the systems of FIGS. 1-5, one skilled in the art will understand that any system configured to perform the steps of method 600 in any technically feasible order is within the scope of the present disclosure.
[0038] In step 602, processing element 412 issues a weak exclusive read request to a memory block, such as first level native memory block 402. In some examples, processing element 412 issues the weak exclusive read operation in response to or in the course of speculatively executing a store instruction. In step 604, first level native memory block 402, which in some examples is a cache shared between processor cores, makes a determination as to whether to issue commands to processor-memory element 410 to invalidate cache lines that contain addresses where the store instruction is stored, at the direct command of first level native memory block 402. Processor-memory element 410 complies with these commands and invalidates the cache lines specified by the commands. In step 606, first level native memory block 402 sends the weak exclusive read request to a higher level of the memory hierarchy for processing as described elsewhere herein.
[0039] In some examples, in response to the store instruction becoming non-speculative, the processing element 412 executing the store instruction issues a strong exclusive read request to the memory hierarchy. In response to this request, each cache that stores a copy of the cache line that is not in a portion of the memory hierarchy immediately above the processing element 412 invalidates the cache line. In one example, the portion of the memory hierarchy immediately above the processing element 412 includes an L0 cache associated with the processing element 412, an L1 cache immediately above that L0 cache, an L2 cache immediately above that L1 cache, etc. These memories do not invalidate their copies of the cache line because the purpose of the invalidation is to invalidate parallel copies and not directly used copies of the cache line.
[0040] If the processing element 412 determines that a speculatively executed store instruction is not to be non-speculatively executed, in other words, that the store instruction is incorrectly executed (e.g., due to a branch misprediction), then the processing element 412 does not issue a strong exclusive read request, in which case the memory that did not invalidate the cache line did not need to reacquire the cache line for the incorrectly executed store instruction.
[0041] It should be understood that in each of the memories described herein, the invalidation that occurs is done to the cache line that contains the data that the store instruction writes.
[0042] It should be understood that many variations are possible based on the disclosure herein, and although features and elements are described above in specific combinations, each feature or element may be used alone without the other features and elements, or in various combinations with other features and elements, with or without the other features and elements.
[0043] Various elements shown in the figure can be implemented as hardware (e.g., circuits), software running on a processor, or a combination of hardware and software. In various examples, each block such as processor-memory element 410, processing element 412, memory 414, memory 416, memory 418, processor chip 310, system element 308, system level memory 304, system memory controller 306, and illustrated units of instruction execution pipeline 200 and computer system 100 can be implemented as hardware, software, or a combination thereof. The provided methods can be implemented in a general purpose computer, processor, or processor core. Suitable processors include, by way of example, a general purpose processor, a special purpose processor, a conventional processor, a digital signal processor (DSP), multiple microprocessors, one or more microprocessors associated with a DSP core, a controller, a microcontroller, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) circuit, any other type of integrated circuit (IC), and / or a state machine. Such a processor may be manufactured by configuring a manufacturing process using the results of processed hardware description language (HDL) instructions and other intermediate data such as a netlist (such instructions may be stored on a computer-readable medium). The result of such processing may be a mask work that is used in subsequent semiconductor manufacturing processes to produce a processor embodying aspects of the embodiments.
[0044] The methods or flow diagrams provided herein may be implemented in a computer program, software, or firmware embodied in a non-transitory computer-readable storage medium for execution by a general purpose computer or processor. Examples of non-transitory computer-readable storage media include read only memory (ROM), random access memory (RAM), registers, cache memory, semiconductor memory devices, magnetic media such as internal hard disks and removable disks, magneto-optical media, and optical media such as CD-ROM disks and digital versatile disks (DVDs).
Claims
1. 1. A method comprising: issuing a weak exclusive read request for a speculatively executed store instruction to a first level of a memory hierarchy; determining whether to invalidate one or more cache lines associated with the store instruction in one or more memories; and issuing the weak exclusive read request to an additional level of the memory hierarchy. method.
2. determining includes determining that one or more of the one or more memories invalidate a cache line associated with the store instruction; 2. The method of claim 1.
3. one or more of the one or more memories invalidating a cache line associated with the store instruction.
2. The method of claim 1.
4. issuance of a soft invalidation request to an additional level of the memory hierarchy includes issuing the invalidation request to a second level of the memory hierarchy higher than the first level of the memory hierarchy.
2. The method of claim 1.
5. determining which memory elements of a plurality of memory elements in the first level of the memory hierarchy to invalidate, The method of claim 4.
6. determining includes determining that one or more of the one or more memories do not invalidate a cache line associated with the store instruction; 2. The method of claim 1.
7. issuing a strong exclusive read request in response to the store instruction becoming non-speculative.
2. The method of claim 1.
8. non-speculatively executing a second instruction; and issuing a strong exclusive read request for the second instruction.
2. The method of claim 1.
9. determining whether to invalidate one or more cache lines associated with the store instruction in the one or more memories includes determining whether to invalidate the one or more cache lines based on one or more of a number of memories in a first level of the memory hierarchy and a cost associated with invalidating the one or more cache lines; 2. The method of claim 1.
10. A device, comprising: a processing element configured to issue a weak exclusive read request for a speculatively executed store instruction to a first level of a memory hierarchy; A first level of the memory hierarchy comprises: determining whether to invalidate one or more cache lines associated with the store instruction in one or more memories; issuing the weak exclusive read request to an additional level of the memory hierarchy; 4. The method of claim 3, device.
11. determining includes determining that one or more of the one or more memories invalidate a cache line associated with the store instruction; The device of claim 10.
12. the one or more memories are configured to invalidate a cache line associated with the store instruction. The device of claim 10.
13. issuance of a soft invalidation request to an additional level of the memory hierarchy includes issuing the invalidation request to a second level of the memory hierarchy higher than the first level of the memory hierarchy. The device of claim 10.
14. the second level of the memory hierarchy is configured to determine which memory elements of the plurality of memory elements in the first level of the memory hierarchy to invalidate. The device of claim 13.
15. determining includes determining that one or more of the one or more memories do not invalidate a cache line associated with the store instruction; The device of claim 10.
16. the processing element is configured to issue a strong exclusive read request in response to the store instruction becoming non-speculative. The device of claim 10.
17. The processing element includes: non-speculatively executing a second instruction; Issuing a strong exclusive read request for the second instruction; and 4. The method of claim 3, The device of claim 10.
18. determining whether to invalidate one or more cache lines associated with the store instruction in the one or more memories includes determining whether to invalidate the one or more cache lines based on one or more of a number of memories in a first level of the memory hierarchy and a cost associated with invalidating the one or more cache lines; The device of claim 10.
19. A device, comprising: A processor-memory hierarchy is provided; the processor-memory hierarchy includes a plurality of primary processor-memory hierarchy levels; Each primary processor-memory hierarchy level includes one or more processing elements; any one of the one or more processing elements is configured to issue a weak exclusive read request for a speculatively executed store instruction to any one of the plurality of primary processor-memory hierarchy levels; The primary processor-memory hierarchy level includes: determining whether to invalidate one or more cache lines associated with the store instruction in one or more memories; issuing the weak exclusive read request to an additional level of the memory hierarchy; [0023] device.
20. determining includes determining that one or more of the one or more memories invalidate a cache line associated with the store instruction; 20. The device of claim 19.
Citation Information
Patent Citations
Handling load-exclusive instructions in apparatus having support for transactional memory
EP3588280A1
Methods and systems for speculatively disabling lines in the cache
JP2004529435A
Support for speculative ownership without accompanying data
JP2014503929A
Computer program, computer system and computer-implemented method for facilitating processing in a computing environment
JP2020514856A
