# US 9,354,925 B2 · Transaction abort processing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,354,925 B2
- Document ID: US9354925B2
- Status: Granted
- Kind: B2
- Application number: 13/790,020
- Filed: 2013-03-08
- Published: 2013-12-19
- Granted: 2016-05-31
- Earliest claimed: 2012-06-15
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Dan F. Greiner; Christian Jacobi; Timothy J. Slegel
- Web page: https://patentgrep.com/patent/US9354925B2

## CPC

- G06F 9/30098: {Register arrangements}
- G06F 9/3004: {to perform operations on memory}
- G06F 9/30087: {Synchronisation or serialisation instructions}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3834: {Maintaining memory consistency}
- G06F 9/3842: {Speculative instruction execution}
- G06F 9/3858: {Result writeback, i.e. updating the architectural state or memory}
- G06F 9/3861: {Recovery, e.g. branch miss-prediction, exception handling (error detection or correction G06F11/00)}
- G06F 9/466: {Transaction processing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A transaction executing within a computing environment ends prior to completion; i.e., execution is aborted. Pursuant to aborting execution, a hardware transactional execution CPU mode is exited, and one or more of the following is performed: restoring selected registers; committing nontransactional stores on abort; branching to a transaction abort program status word specified location; setting a condition code and/or abort code; and/or preserving diagnostic information.

## Claims

### Claim 1

A method of facilitating processing in a computing environment, said method comprising:
initiating, by a processor, execution of an outermost transaction via a transaction begin instruction, the outermost transaction causing the processor to enter transactional execution mode, the transaction begin instruction including a field having a general register save mask, the general register save mask specifying which individually selected registers, if any, are to be saved at a beginning of transactional execution mode and restored on an abort;
aborting, by the processor, execution of a transaction of the transactional execution mode executing within the computing environment, the transaction effectively delaying committing transactional stores to main memory until completion of a selected transaction, the aborting terminating execution of the transaction prior to completion; and
based on aborting execution of the transaction, identifying one or more selected registers to be restored, the one or more selected registers being less than all of the registers used in transactional processing associated with the transaction, and the one or more selected registers being pre-specified by the general register save mask, wherein the general register save mask includes a plurality of bits, each bit corresponding to one or more registers, and wherein a bit of the plurality of bits set to a first value indicates that the one or more registers corresponding to that bit are to be saved during the beginning of transactional execution mode and restored based on the abort of the transaction executing in the transactional execution mode.

### Claim 2 (depends on 1)

The method of claim 1, further comprising restoring the one or more selected registers.

### Claim 3 (depends on 1)

The method of claim 1, wherein the one or more selected registers are indicated in an instruction initiating the transaction, or in an instruction initiating another transaction, the another transaction and the transaction being nested transactions.

### Claim 4 (depends on 1)

The method of claim 1, further comprising committing nontransactional stores based on the aborting.

### Claim 5 (depends on 1)

The method of claim 1, further comprising proceeding to a transaction abort program status word specified location to perform an action, based on the aborting.

### Claim 6 (depends on 5)

The method of claim 5, wherein the transaction comprises a constrained transaction, and wherein the transaction abort program status word specified location comprises a beginning of the constrained transaction.

### Claim 7 (depends on 5)

The method of claim 5, wherein the transaction comprises a nonconstrained transaction, and wherein the transaction abort program status word specified location comprises an instruction following a beginning of the nonconstrained transaction.

### Claim 8 (depends on 1)

The method of claim 1, wherein based on aborting execution, the method further comprises setting a condition code, the condition code to indicate whether re-execution of the transaction is recommended.

### Claim 9 (depends on 1)

The method of claim 1, wherein based on aborting execution providing an abort code, the abort code to indicate a cause for aborting execution.

### Claim 10 (depends on 1)

The method of claim 1, further comprising storing diagnostic information, based on aborting execution.

### Claim 11 (depends on 1)

The method of claim 1, wherein the aborting is based on detection of a transactional conflict.
