Patent ID: 8799590

Claim:
A system enabling Transactional Memory comprising: a prediction unit configured to predict a mode for a next execution of a transaction based on a final status of a preceding execution of the transaction, the prediction unit comprising a lookup table having a plurality of entries, each of the plurality of entries configured to store a physical address of the transaction in a physical address field and a prediction of whether the transaction will overflow during a next execution in an execution mode information field; a transaction write buffer for temporarily storing the speculative data of the transaction during the execution of the transaction in non-overflow mode by the execution unit and for recording data addresses of write operations inside the transaction during the execution of the transaction in overflow mode by the execution unit; and an execution unit configured to execute the transaction in the mode predicted by the prediction unit, wherein the mode includes overflow mode and non- overflow mode; the mode for a next execution of the transaction is predicted as overflow mode by the prediction unit when an overflow occurs during the preceding execution of the transaction; and the mode for the next execution of the transaction is predicted as non-overflow mode otherwise, wherein the execution mode information field in the lookup table is modified according to a final state of the execution of the transaction, wherein as to a transaction executed in overflow mode, if the transaction write buffer has enough space to hold all the data addresses of the write operations inside the transaction during the execution of the transaction, the mode for the next execution of the transaction is predicted as non-overflow mode by the prediction unit; otherwise, the mode for the next execution of the transaction is predicted as overflow mode by the prediction unit.