摘要 |
PROBLEM TO BE SOLVED: To provide a method and apparatus for executing lock instructions speculatively in an out-of-order processor.SOLUTION: Prediction is made as to whether a given lock instruction will actually be contended (410). If not, then the lock instruction may be treated as having a normal load micro-operation which may be speculatively executed (420). Monitor logic may look for indications that the lock instruction is actually contended (430). If no such indications are found, the speculative load micro-operation and other micro-operations corresponding to the lock instruction may retire (440). However, if such indications are in fact found, the lock instruction may be restarted, and the prediction mechanism may be updated (450). |