Machine instruction to terminate a conditional instruction

The Conditional Transaction End (CTEND) instruction addresses transaction execution conflicts in multiprocessing environments by allowing programs to manage transaction termination or delay based on predefined conditions, improving concurrency and reducing aborts.

DE112015000223B4Active Publication Date: 2024-09-26INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
DE112015000223
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2014-03-14
Filing Date
2015-03-11
Publication Date
2024-09-26
Estimated Expiration
2035-03-11

AI Technical Summary

Technical Problem

Current computing environments face challenges in managing transaction execution across multiple CPUs and I/O subsystems, leading to conflicts and aborts due to memory access collisions, making it difficult for one CPU to affect the execution of another, especially in transactional memory systems.

Method used

A computer program product and system that includes a Conditional Transaction End (CTEND) instruction, allowing a program to examine memory locations modified by another CPU or I/O subsystem, enabling termination or delay of transaction execution based on predefined conditions, such as a predefined event or value change.

Benefits of technology

Enables effective management of transaction execution across multiple CPUs and I/O subsystems by reducing unnecessary aborts and enhancing concurrency, allowing programs to respond to memory modifications by other processors without immediate conflict detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Computer program product for executing a machine instruction in a transactional data processing environment (100), wherein the computer program product comprises: A computer-readable storage medium that can be read by a processing circuit and stores instructions for execution by the processing circuit to carry out a procedure that includes: by a processor (110) obtaining the machine instruction for execution in the transactional data processing environment, wherein the machine instruction is defined for computer execution according to a computer architecture, wherein the machine instruction has: an operation code field (202, 302, 402, 502) used to specify an operation code for terminating a conditional command operation; and by the processor (110) executing the machine instruction, wherein the execution includes: Receiving an operand (1150) of the machine instruction, where the operand has a sign value; Determine (1152) whether the operand has a predefined relation with respect to a value, where the predefined relation involves equality and the value is zero; Determine (1156) whether the operand is greater than zero, and on the basis that the operand is greater than zero, delay (1158) the execution of the machine instruction and repeat obtaining and determining, and on the basis that the operand is less than zero, prematurely terminate (1160) the machine instruction, on the basis of finding that the operand does not have the specified relationship with respect to a value; Executing (1154) the machine instruction based on the finding that the operand has the specified relationship with respect to a value; and where obtaining the operand, determining whether the operand has the specified relationship with respect to the value, further determining whether the operand is greater than zero based on the finding that the operand does not have the specified relationship with respect to the value, and executing the machine instruction based on the finding that the operand has the specified relationship with respect to a value, are performed as part of a single instruction containing the operation code.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND

[0001] One or more aspects relate generally to multiprocessing computing environments and, more particularly, to transaction processing in such computing environments.

[0002] In a computing environment that implements a transactional execution facility (also known as "transactional memory"), a transaction provides the means by which a program can issue a plurality of instructions, and the memory accesses of those instructions (a) appear to occur as a single concurrent operation, or (b) do not appear to occur when viewed by other central processing units (CPUs) and the input / output (I / O) subsystem. A transactional access performed by a CPU is said to collide with (a) a transactional or non-transactional access performed by another CPU, or (b) a non-transactional access performed by the I / O subsystem if both accesses are to a memory location in the same cache line, and one or both of the accesses are stores.

[0003] The current nature of conflict detection has made it exceedingly difficult, if not impossible, for a program executing on one CPU to affect the execution of a program executing on another CPU when one or both CPUs are in transactional execution mode. Any store operation to a memory location accessed by both CPUs is likely to be treated as a conflict, resulting in the termination of transaction execution.

[0004] US 2010 / 0 100 688 A1 describes a low-overhead conditional synchronization instruction that operates on a synchronization variable comprising a lock bit, a state indication, and bits for user-defined data. US 5 440 750 A describes that each processor of a multiprocessor system sharing a main memory has an execution circuit for executing a compare and monitor instruction designed to monitor information written to the main memory for synchronization. EP 0 863 462 A2 describes a processor capable of efficiently executing many asynchronous event tasks. EP 1 612 661 A2 describes a method, apparatus, and system for performing compare and swap operations using a sleep-wake mechanism. SUMMARY

[0005] It is an object of the invention to provide an improved computer program product and an improved computer system for executing a machine instruction in a transactional data processing environment. The invention is described by the features of the independent claims. Embodiments are specified in the dependent claims.

[0006] By providing a computer program product for executing a machine instruction in a data processing environment, disadvantages existing in the prior art are overcome and advantages are created. The computer program product includes a computer-readable storage medium readable by processing circuitry and storing instructions for execution by the processing circuitry to perform a method. The method includes, for example, obtaining, by a processor, a machine instruction for execution, wherein the machine instruction is defined for computer execution according to a computer architecture, the machine instruction including an operation code field having an operation code specifying a conditional instruction end operation; and executing, by the processor, the machine instruction, wherein the executing includes: obtaining an operand;Determining whether the operand contains a predetermined relationship with respect to a value; repeating obtaining and determining based on determining that the operand does not contain the predetermined relationship with respect to the value; executing the instruction based on determining that the operand contains the predetermined relationship with respect to the value; and wherein obtaining the operand, determining whether the operand contains the predetermined relationship with respect to the value, repeating obtaining and determining based on determining that the operand does not contain the predetermined relationship with respect to the value, and executing the instruction based on determining that the operand contains the predetermined relationship with respect to the value are performed as part of a single instruction that includes the operation code.;

[0007] Methods and systems relating to one or more embodiments are also described and claimed herein. Furthermore, services relating to one or more embodiments are also described and may be claimed herein.

[0008] Additional features and advantages are realized. Other embodiments and aspects are described in detail herein and are considered part of the claimed invention. BRIEF DESCRIPTION OF THE MULTIPLE DRAWING VIEWS

[0009] One or more aspects are particularly pointed out and clearly claimed as examples in the claims at the end of the specification. The foregoing and other objects, features, and advantages will be apparent from the following description when taken in conjunction with the accompanying figures, in which: Fig. 1 shows an embodiment of a data processing environment; Fig. Figure 2A shows an example of a Transaction Begin (TBEGIN) command; Fig. 2B shows an embodiment of further details of a field of the TBEGIN command of Fig. 2A shows; Fig. Figure 3A shows an example of a Transaction Begin Constrained (TBEGINC) instruction; Fig. 3B shows an embodiment of further details of a field of the TBEGINC instruction of Fig. 3A shows; Fig. 4 an example of a Transaction End (TEND) command; Fig. Figure 5 shows an example of a Transaction Abort (TABORT) command; Fig. 6 shows an example of nested transactions; Fig. Figure 7 shows an example of a transaction diagnostic block; Fig. Figure 8 shows an example of a Conditional Transaction End (CTEND) command; Fig. 9 shows an embodiment of the logic circuit corresponding to the Conditional Transaction End instruction of Fig.8 belongs; Fig. 10 shows an embodiment of further details associated with the logic circuit of the Conditional Transaction End instruction; the Fig. 11A through 11C illustrate one embodiment of processing associated with aspects of a Conditional Instruction End operation; Fig. 12 shows an embodiment of a computer program product; Fig. 13 shows an embodiment of a host computer system; Fig. 14 shows another example of a computer system; Fig. Figure 15 shows another example of a computer system having a computer network; Fig. 16 shows an embodiment of various elements of a computer system; Fig. 17A an embodiment of the execution unit of the computer system of Fig. 16 shows; Fig.17B shows an embodiment of the branching unit of the computer system of Fig. 16 shows; Fig. 17C an embodiment of the loading / storage unit of the computer system of Fig. 16 shows; Fig. 18 shows an embodiment of an emulated host computer system; Fig. 19 shows an embodiment of a cloud computing node; Fig. 20 shows an embodiment of a cloud computing environment; and Fig. 21 shows an example of layers of an abstraction model. DETAILED DESCRIPTION

[0010] According to one aspect, a possibility is provided for a program executing on one processor (e.g., central processing unit (CPU)) to influence the transaction execution of another processor (e.g., another CPU). In one embodiment, an instruction known as Conditional Transaction End (CTEND) is provided, which enables a program executing in an unconstrained transaction execution mode to examine a memory location being modified by another CPU or the I / O subsystem. Based on the examined data, transaction execution may be terminated or aborted, or the terminate / abort decision may be delayed, for example, until a predefined event occurs.

[0011] For example, when the CTEND instruction is executed and the processor is in unconstrained transaction execution mode and the transaction nesting depth at the beginning of the instruction is one, a second operand of the instruction is examined, and based on the examined data, transaction execution may be terminated or aborted, or the terminate / abort decision may be delayed until, for example, a predefined event occurs, such as the value of the second operand becoming a prespecified value or a predefined relationship being satisfied at a selected time interval (e.g., the time interval is exceeded). As another example, the predefined event may include an interrupt becoming pending. Other events are also possible.

[0012] Before describing this command in detail, however, details regarding the transaction execution setup are explained, including unrestricted and restricted transaction execution modes.

[0013] The facility for transaction execution introduces a CPU state called transaction execution (TX) mode. After a CPU reset, the CPU is not in TX mode. The CPU enters TX mode with a TRANSACTION BEGIN instruction and ends TX mode with (a) an outermost TRANSACTION END instruction (more details regarding inner and outer instructions follow), (b) a CONDITIONAL TRANSACTION END instruction that sets the condition code to 0; or (c) the transaction is aborted. During TX mode, memory accesses by the CPU appear block-simultaneous when viewed by other CPUs and the I / O subsystem. The memory accesses to memory are committed (a) when the outermost transaction completes without aborting (i.e.for example, updates made in a cache or in a buffer local to the CPU are propagated and stored in real memory and visible to other CPUs) or (b) discarded when the transaction aborts.

[0014] Transactions can be nested. That is, if the CPU is in TX mode, it can execute another TRANSACTION BEGIN instruction. The instruction that causes the CPU to enter TX mode is called the outermost TRANSACTION BEGIN instruction; likewise, the program is said to be in the outermost transaction. Subsequent executions of TRANSACTION BEGIN are called inner instructions; and the program executes an inner transaction. The model provides a minimum nesting depth and a model-dependent maximum nesting depth. An EXTRACT TRANSACTION NESTING DEPTH instruction returns the current nesting depth value and, in another embodiment, can return a maximum nesting depth value.This technique uses a model called flattened nesting, where an abort condition at any nesting depth causes all levels of the transaction to abort, and control is returned to the instruction following the outermost TRANSACTION BEGIN instruction.

[0015] During transaction processing, a transactional access performed by one CPU is said to collide with (a) a transactional or non-transactional access performed by another CPU, or (b) a non-transactional access performed by the I / O subsystem if both accesses are to a memory location in the same cache line, and if one or both accesses are stores. In other words, for transactional execution to be productive, the CPU must be ignored while executing transactional accesses before they are committed. This programming model can be very effective in certain environments, such as updating two points in a doubly linked list of one million elements.However, it may also be less effective if there is a congestion in the memory locations accessed during transactions.

[0016] In one transaction execution model (referred to here as an unconstrained transaction), if a transaction aborts, the program can attempt to recommit the transaction in the hope that the abort condition no longer exists, or the program can "fall back" to an equivalent non-transactional path. In another transaction execution model (referred to here as a constrained transaction), an aborted transaction is automatically recommitted by the CPU; in the absence of constraint violations, the constrained transaction eventually executes safely.

[0017] When a transaction is initiated, the program can specify various controls, such as (a) which general-purpose registers are restored to their original contents if the transaction aborts; (b) whether the transaction may modify the floating-point register context, including, for example, floating-point registers and the floating-point control register; (c) whether the transaction may modify access registers (ARs); and (d) whether certain program exceptions should be locked from causing interruption. When an unconstrained transaction aborts, various diagnostic information can be provided. For example, the outermost TBEGIN instruction that initiates an unconstrained transaction can name a program-specified transaction diagnostic block (TDB).Furthermore, the TDB in the CPU prefix area or designated by the host state description can also be used if the transaction is aborted as a result of a program interrupt or a condition that causes interpretive execution to end.

[0018] As stated above, there are different types of registers. These are explained in detail below. General purpose registers can be used as storage in general purpose arithmetic and logical operations. In one embodiment, each register contains 64 bit positions, and there are 16 general purpose registers. The general purpose registers are identified by the numbers 0 through 15 and are referred to in an instruction by a four-bit R field. Some instructions provide multiple general purpose registers for addressing by containing multiple R fields. For some instructions, the use of a special general purpose register is assumed and is not explicitly referred to by an R field of the instruction.

[0019] In addition to their use as storage in general arithmetic operations, 15 of the 16 general purpose registers are also used as base address and index registers in address generation. In these cases, the registers are designated in an instruction by a four-bit B field or an X field. A value of zero in the B or X field specifies that no base or index is to be applied, and thus general purpose register 0 should not be designated as containing a base address or index.

[0020] Floating-point instructions use a group of floating-point registers. In one embodiment, the CPU contains 16 floating-point registers. The floating-point registers are identified by the numbers 0 through 15 and are referred to by a four-bit field R in floating-point instructions. Each floating-point register is 64 bits long and can contain either a short (32-bit) or a long (64-bit) floating-point operand.

[0021] A floating-point control (FPC) register is a 32-bit register that contains mask bits, flag bits, a data exception code, and rounding mode bits that is used during the processing of floating-point operations.

[0022] Furthermore, in one embodiment, the CPU includes 16 control registers, each containing 64 bit positions. The bit positions in the registers are assigned to specific devices in the system, such as Program Event Recording (PER) (discussed later), and are used to specify that an operation may occur or to provide specific information requested by the device. In one embodiment, CR0 (bits 8 and 9) and CR2 (bits 61 through 63) are used for the transaction device, as described later.

[0023] For example, the CPU contains 16 access registers numbered 0 through 15. An access register contains 32 bit positions that contain an indirect specification of an address space control element (ASCE). An address space control element is a parameter used by the dynamic address translation (DAT) mechanism to translate references to a corresponding address space. When the CPU is in a mode called access register mode (controlled by bits in the program status word (PSW)), a B field of the instruction used to specify a logical address for a memory operand reference designates an access register, and the address space control element specified by the address register is used by DAT for the reference being made. In some instructions, an R field is used instead of a B field.Instructions are provided for loading and storing the contents of the access registers and for moving the contents from one access register to another.

[0024] Each of the access registers 1 through 15 can designate an address space. Access register 0 designates the primary address space. When one of the registers 1 through 15 is used to designate an address space, the CPU determines which address space is being designated by translating the contents of the access register. When access register 0 is used to designate an address space, the CPU treats the access register as if it designates the primary address space and does not check the current contents of the access register. Therefore, the 16 access registers can designate the primary address space and a maximum of 15 other spaces at any given time.

[0025] In one embodiment, there are several types of address spaces. An address space is a continuous sequence of integers (virtual addresses), along with the specific transformation parameters that allow each number to be mapped to a byte location in memory. The sequence starts at zero and runs from left to right.

[0026] For example, in z / Architecture, when a virtual address is used by a CPU to access a main storage device (also known as main memory), it is first translated to a physical address using dynamic address translation (DAT) and then prefixed to an absolute address. DAT can use from one to five table levels (page, segment, third region, second region, and first region) as transformation parameters. The designation (origin and length) of the top-level table for a particular address space is called an address space control element and is located for use by DAT in a control register or specified by an access register.Alternatively, the address space control for an address space may be a real space label that indicates that DAT should translate the virtual address by simply treating it as a real address without using any tables.

[0027] DAT uses the address space control elements from different control registers or those specified by the access registers at different times. The choice is determined by the translation mode specified in the current PSW. Four translation modes are available: primary space mode, secondary space mode, access register mode, and home space mode. Depending on the translation mode, different address spaces can be addressed.

[0028] In either case, when the CPU is in primary space or secondary space mode, it can translate virtual addresses belonging to two address spaces: the primary address space and the secondary address space. When the CPU is in register access mode, it can translate virtual addresses of up to 16 address spaces: the primary address space and up to 15 address spaces specified by AR. When the CPU is in home space mode, it can translate virtual addresses of the home address space.

[0029] The primary address space is identified this way because it contains primary virtual addresses translated using the primary address space control element (ASCE). Similarly, the secondary address space contains secondary virtual addresses translated using the secondary ASCE; the AR-specified address space contains AR-specified virtual addresses translated using AR-specified ASCEs; and the home address space contains home virtual addresses translated using the home ASCE. The primary and secondary ASCEs are located in control registers 1 and 7, respectively. AR-specified ASCEs are located in ASN entries of the second table, which are located by a process called access register translation (ART) using control registers 2, 5, and 8. The home ASCE is located in control register 13.

[0030] An embodiment of a data processing environment incorporating and using one or more aspects of the transaction facility and a facility for ending conditional transactions including the CONDITIONAL TRANSACTION END instruction is described with reference to Fig. 1 described.

[0031] In Fig. 1, in one example, a data processing environment 100 is based on the z / Architecture developed by International Business Machines (IBM ® ) Corporation, Armonk, New York. The z / Architecture is described in an IBM publication entitled "z / Architecture - Principles of Operation," publication number SA22-7932-09, 10th edition, September 2012, which is incorporated herein by reference in its entirety.

[0032] Z / ARCHITECTURE, IBM, Z / OS, and Z / VM (referred to below) are registered trademarks of International Business Machines Corporation, Armonk, New York. Other names used herein may be registered trademarks, trademarks, or product names of International Business Machines Corporation or other companies.

[0033] For example, the data processing environment 100 includes a central processor complex (CPC) 102 connected to one or more input / output (I / O) units 106 via one or more control units 108. The central processor complex 102 includes, for example, a processor memory 104 (also known as main memory, main storage device, central memory) connected to one or more central processors (also known as central processing units (CPUs)) 110 and an input / output subsystem 111, each of which is described below.

[0034] For example, processor memory 104 includes one or more partitions 112 (e.g., logical partitions) and processor firmware 113, which includes a logical partition hypervisor 114 and further processor firmware 115. An example of logical partition hypervisor 114 is the Processor Resource / System Manager (PR / SM) offered by International Business Machines Corporation, Armonk, New York.

[0035] A logical partition functions as a separate system and contains one or more applications 120 and optionally a resident operating system 112, which may be different for each logical partition. In one embodiment, the operating system is the z / OS operating system, the z / VM operating system, the z / Linux operating system, or the TPF operating system offered by International Business Machines Corporation. Logical partitions 112 are managed by the logical partition hypervisor 114, which is implemented by firmware running in the processors 110. The firmware used here contains, for example, the microcode and / or millicode of the processor. It contains, for example, the hardware-assisted instructions and / or data structures used in the implementation of higher-level machine code. In one embodiment, it contains, for example,Proprietary code, typically delivered as microcode, containing trusted software or microcode specific to the underlying hardware that controls the operating system's access to the system hardware.

[0036] The central processors 110 are physical processor resources assigned to the logical partitions. Specifically, each logical partition 112 includes one or more logical processors, each of which represents all or a portion of the physical processor 110 assigned to the partition. The logical processors of a particular partition 112 may either be dedicated to the partition, such that the underlying processor resource 110 is reserved for that partition, or may be shared with another partition, such that the underlying processor resource 110 is potentially available to another partition. In one example, one or more of the CPUs include aspects of the means 130 for transaction execution and the means 132 for terminating conditional transactions described herein.

[0037] The input / output subsystem 111 directs the flow of information between input / output units 106 and main memory 104. It is connected to the central processing complex in that it may be part of the central processing complex or may be separate from it. The I / O subsystem relieves the central processors of the task of exchanging data directly with the input / output units and allows data processing to occur concurrently with input / output processing. To provide data exchange, the I / O subsystem uses I / O data transfer adapters. There are various types of data transfer adapters, including, for example, channels, I / O adapters, PCI cards, Ethernet cards, Small Computer Storage Interface (SCSI) cards, etc.In the specific example described here, I / O data transfer adapters are channels, and therefore the I / O subsystem is referred to here as a channel subsystem. However, this is only an example. Other types of I / O subsystems can be used.

[0038] The I / O subsystem uses one or more input / output paths as data exchange connections when managing the flow of information to or from the input / output devices 106. In this particular example, these paths are referred to as channel paths because the data transfer adapters are channels.

[0039] The computing environment described above is merely one example of a computing environment that may be used. Other environments, including but not limited to non-partitioned environments, other partitioned environments, and / or emulated environments, may be used, and embodiments are not limited to any one environment.

[0040] In one or more aspects, the facility for transaction execution represents a central processing unit enhancement that provides a means by which the CPU can execute a sequence of instructions known as a transaction that may access multiple memory locations, including updating those locations. From the perspective of other CPUs and the I / O subsystem, the transaction is either (a) executed in its entirety as a single atomic operation or (b) aborted, potentially leaving no evidence that it was ever executed (except for certain conditions described herein). Thus, a successfully executed transaction may update numerous memory locations without the special locking required by the classic multiprocessing model.

[0041] For example, the transaction execution facility includes one or more controls; one or more commands; transaction processing, including constrained and unconstrained execution; and abort processing, each of which is described below.

[0042] In one embodiment, three special control elements, including a transaction abort program status word (PSW), a transaction diagnostic block (TDB) address, and a transaction nesting depth; five control register bits; and a plurality of general instructions, including TRANSACTION BEGIN (restricted and unrestricted), TRANSACTION END, EXTRACT TRANSACTION NESTING DEPTH, TRANSACTION ABORT, and NONTRANSACTIONAL STORE, are used to control the transaction execution facility. If the facility is installed, it is installed on all CPUs, for example, during configuration. A facility indication, i.e., if bit 73 is one in an implementation, indicates that the transaction execution facility is installed.

[0043] When the transaction execution facility is installed, an aspect may also have another facility installed, called the conditional transaction end facility. For example, the conditional transaction end facility is installed when bit 55 of the facility indicator bits is set to one. In an implementation, this bit is only meaningful if bit 73, which represents the transaction execution facility, is also one. When both facilities are installed, the CONDITIONAL TRANSACTION END instruction also represents a CPU enhancement and is used to control transaction execution.

[0044] If the transaction execution facility is installed, the configuration provides a facility for executing unrestricted transactions and, optionally, a facility for executing restricted transactions, each of which is described below. For example, if facility indicators 50 and 73 are both one, the facility for executing restricted transactions is installed. Both facility indicators are stored in memory at dedicated locations.

[0045] The TRANSACTION BEGIN command label used here refers to commands that contain the mnemonics TBEGIN (transaction begin for an unrestricted transaction) and TBEGINC (transaction begin for a restricted transaction). Explanations pertaining to a specific command are indicated by the command label followed by the mnemonic in parentheses or square brackets, or simply by the mnemonic.

[0046] An embodiment of a format of a TRANSACTION BEGIN (TBEGIN) command is described in the Fig. 2A to 2B. For example, a TBEGIN 200 ( Fig. 2A) an operation code (opcode) field 202 containing an operation code specifying a transaction start of an unrestricted operation; a base field (B1) 204; a displacement field (D1) 206; and an immediate field (I2) 208. If the B1 field is nonzero, the contents of the general register specified by B1 204 are added to D1 206 to obtain the address of the first operand.

[0047] If field B1 is not zero, the following applies: * If the transaction depth is initially zero, the address of the first operand specifies the location of the 256-byte transaction diagnostic block, called the TDB specified by TBEGIN (described below), in which various diagnostic information can be stored if the transaction is aborted. When the CPU is in primary space or access register mode, the address of the first operand specifies a location in the primary address space. When the CPU is in secondary space or home space mode, the address of the first operand specifies a location in the secondary or home address space, respectively. When DAT is disabled, the address of the transaction diagnostic block (TDBA) specifies a location in real memory.

[0048] The memory accessibility of the first operand is determined. If the logical address of the operand is accessible, it is placed in the transaction diagnostic block (TDBA) address, and the TDBA is valid. ∗ If the CPU is already in unrestricted transaction execution mode, the TDBA is not modified and it cannot be predicted whether the first operand has been checked for accessibility.

[0049] If field B1 is zero, no access exceptions are detected for the first operand, and the TDBA is invalid for the outermost TBEGIN instruction.

[0050] The bits of field I2 are defined as follows in an example: General Register Save Mask (GRSM) ( Fig.2B): Bits 0 to 7 of field I2 contain the value General Register Store Mask (GRSM). Each bit of GRSM represents an even / odd pair of general registers, where bit 0 represents registers 0 and 1, bit 1 represents registers 2 and 3, and so on. If a bit in GRSM of the outermost TBEGIN instruction is zero, the corresponding register pair is not stored. If a bit in GRSM of the outermost TBEGIN instruction is one, the corresponding register pair is stored in a model-dependent location that cannot be directly accessed by the program.

[0051] When the transaction is aborted, saved register pairs are restored to their contents as they were when the outermost TBEGIN instruction was executed. The contents of all other (unsaved) general-purpose registers are not restored when a transaction is aborted.

[0052] The value of General Register Save Mask is ignored for all TBEGIN instructions except the outermost instruction.

[0053] Allow AR Modification (A) 212: Control A, bit 12 of field I2, controls whether the transaction is allowed to modify an access register. The effective control "Allow AR Modification" is the logical AND operation of control A in the TBEGIN instruction for the current nesting level and for all outer levels.

[0054] If the effective control A is zero, the transaction is aborted with abort code 11 (restricted instruction) if an attempt is made to modify an access register. If the effective control A is one, the transaction is not aborted if an access register is modified (absent any other abort condition).

[0055] Allow floating-point operation (F) 214: The F control, bit 13 of field I2, controls whether the transaction is allowed to execute specified floating-point instructions. The effective "Allow floating-point operation" control is the logical AND operation of the F control in the TBEGIN instruction for the current nesting level and for all outer levels.

[0056] If the effective control element F is zero, (a) the transaction aborts with abort code 11 (restricted instruction) if an attempt is made to execute a floating-point instruction, and (b) the data exception code (DXC) in byte 2 of the floating-point control register (FPCR) is not set by a data execution program exception. If the effective control element F is one, (a) the transaction does not abort if an attempt is made to execute a floating-point instruction (absence of another abort condition), and (b) the DXC can be set by a data execution program exception.

[0057] Program Interrupt Filtering Control (PIFC) 216: Bits 14 through 15 of field I2 are the program interrupt filtering control (PIFC). The PIFC controls whether certain classes of program exceptions (e.g., addressing exception, data exception, operation exception, protection exception, etc.) that occur when the CPU is in transactional execution mode result in an interrupt.

[0058] The effective PIFC is the largest value of the PIFC in the TBEGIN instruction for the current nesting level and for all outer levels. The effective PIFC is the largest value of the PIFC in the TBEGIN instruction for the current nesting level and for all outer levels. If the effective PIFC is zero, all program exceptions result in an interrupt. If the effective PIFC is one, program exceptions that include a transaction execution class 1 and 2 result in an interrupt. (Each program exception is assigned to at least one transaction execution class depending on the severity of the exception. The severity is based on the probability of recovery during a rerun of the transaction execution and whether the operating system needs to honor the interrupt.)) If the effective PIFC is 2, program exceptions containing a transaction execution class of 1 result in an interrupt. A PIFC of 3 is reserved.

[0059] Bits 8 to 11 of field I2 (bits 40 to 43 of the instruction) are reserved and should contain zeros; otherwise, the program may not operate compatibly in the future.

[0060] An embodiment of a format of a Transaction Begin constrained (TBEGINC) command is described with reference to the Fig. 3A to 3B. In one example, TBEGINC contains 300 ( Fig.3A) an operation code (opcode) field 302 containing an operation code specifying a Transaction Begin Constrained operation; a base field (B1) 304; a displacement field (D1) 306; and an immediate field (I2) 308. The contents of the general purpose register specified by B1 are added to D1 306 to obtain the address of the first operand. However, for the Transaction Begin Constrained instruction, the address of the first operand is not used to access memory. Instead, the B1 field of the instruction contains zeros; otherwise, a specification exception is detected.

[0061] In one embodiment, field I2 contains various controls, of which Fig. 3B shows an example.

[0062] The bits of field I2 are defined as follows in an example: General Register Save Mask (GRSM): Bits 0 through 7 of field I2 contain the General Register Save Mask (GRSM) value. Each bit of GRSM represents an even / odd pair of general registers, where bit 0 represents registers 0 and 1, bit 1 represents registers 2 and 3, and so on. If a bit in GRSM is zero, the corresponding register pair is not saved. If a bit in GRSM is one, the corresponding register pair is saved in a model-dependent location that is not directly accessible by the program.

[0063] When the transaction is aborted, saved register pairs are restored to their contents as they were when the outermost TBEGIN instruction was executed. The contents of all other (unsaved) general-purpose registers are not restored when a restricted transaction is aborted.

[0064] When TBEGINC is used to resume an execution in unconstrained transaction mode, the general register save mask is ignored.

[0065] Allow AR Modification (A) 312: Control A, bit 12 of field I2, controls whether the transaction may modify an access register. The effective control "Allow AR Modification" is the logical AND of control A in the TBEGINC instruction for the current nesting level and for all outer TBEGIN or TBEGINC instructions.

[0066] If the effective control A is zero, the transaction is aborted with abort code 11 (restricted instruction) if an attempt is made to modify an access register. If the effective control A is one, the transaction is not aborted if an access register is modified (absent any other abort condition).

[0067] Bits 8 to 11 and 13 to 15 of field I2 (bits 40 to 43 and 45 to 47 of the instruction) are reserved and should contain zeros.

[0068] The end of a Transaction Begin command is specified in one example by a TRANSACTION END (TEND) command, the format of which is Fig. 4. For example, a TEND 400 instruction includes an Operation Code 402 field that contains an operation code specifying a Transaction End operation.

[0069] In another embodiment, the end of a transaction may be specified by a CONDITIONAL TRANSACTION END (CTEND) command, which is described in more detail below.

[0070] Several terms are used with respect to the transaction execution facility, and therefore, for convenience, only a list of terms is provided below in alphabetical order. In one embodiment, these terms have the following definition: Abort: A transaction is aborted if it ends before a TRANSACTION END command, which results in a transaction nesting depth of zero, or if a CONDITIONAL TRANSACTION END command sets a condition code of zero. When a transaction is aborted, one embodiment does the following: ∗ Transactional memory accesses that pass through all levels of the transaction are discarded (ie, not committed). ∗ Non-transactional memory accesses made through all levels of the transaction are committed. * Registers referenced by the General Register Save Mask (GRSM) of the outermost TRANSACTION BEGIN instruction are restored to their contents prior to transaction execution (i.e., their contents when the outermost TRANSACTION BEGIN instruction was executed). General registers not referenced by the General Register Save Mask of the outermost TRANSACTION BEGIN instruction are not restored. * Access registers, floating-point registers, and floating-point control registers are not restored. Any changes made to these registers during transaction execution are retained if the transaction is aborted.

[0071] A transaction can be aborted for a variety of reasons, including attempted execution of a restricted instruction, attempted modification of a restricted resource, transaction conflict, exceeding certain CPU resources, interpretive execution of a defect condition, any interrupt, a TRANSACTION ABORT instruction, and other reasons. A transaction abort code provides specific reasons why a transaction might be aborted.

[0072] An example of a TRANSACTION ABORT (TABORT) command format is given with reference to Fig.5. For example, a TABORT instruction 500 includes an operation code field 502 containing an operation code specifying a transaction abort operation; a base field (B2) 504; and a displacement field (D2) 506. If the B2 field is non-zero, the contents of the general register specified by B2 504 are added to D2 506 to obtain the address of a second operand; otherwise, the address of the second operand is formed solely from the D2 field, with the B2 field being ignored. The address of the second operand is not used to address data; instead, the address forms the transaction abort code when placed in a transaction diagnostic block during abort processing.An address calculation of the address of the second operand follows the rules of address arithmetic: in 24-bit addressing mode, bits 0 to 29 are set to zero; in 31-bit addressing mode, bits 0 to 32 are set to zero.

[0073] Commit: When executing an outermost TRANSACTION END instruction or when executing a CONDITIONAL TRANSACTION END instruction that sets the condition code to 0, the CPU commits the memory accesses performed by the transaction (that is, the outermost transaction and all nested levels) so that they are visible to other CPUs and the I / O subsystem. From the perspective of the other CPUs and the I / O subsystem, all fetch and memory accesses performed by all nested levels of the transaction appear to occur as a single concurrent operation when commit occurs.

[0074] The contents of general purpose registers, access registers, floating-point registers, and the floating-point control register are not modified by the commit process. Any changes made to these registers during transaction execution are persisted when the transaction's stores are committed.

[0075] Conflict: A transactional access made by one CPU conflicts with (a) a transactional access or a non-transactional access made by another CPU, or (b) a non-transactional access made by the I / O subsystem, if both accesses are to a location in the same line of cache memory or one or more accesses are stores.

[0076] A conflict can be detected by speculative execution of instructions by a CPU, even if the conflict may not be detected in the conceptual sequence.

[0077] Restricted transaction: A restricted transaction is a transaction executed in the restricted transaction execution mode and is subject to the following restrictions: ∗ A subset of the general commands is available. ∗ A limited number of commands can be executed. ∗ A limited number of memory operand locations can be accessed. ∗ The transaction is limited to a single nesting level.

[0078] In the absence of repeated interrupts or conflicts with other CPUs or the I / O subsystem, a constrained transaction will eventually execute, so no abort handler routine is required.

[0079] If a TRANSACTION BEGIN constrained (TBEGINC) instruction is executed while the CPU is already in unconstrained transaction execution mode, execution continues as a nested unconstrained transaction.

[0080] Restricted Transaction Execution Mode: If the transaction nesting depth is zero and a transaction is triggered by a TBEGINC instruction, the CPU enters Restricted Transaction Execution Mode. While the CPU is in Restricted Transaction Execution, the transaction nesting depth is one.

[0081] Nested transaction: If the TRANSACTION BEGIN instruction is issued while the CPU is in unrestricted transaction execution mode, the transaction is nested.

[0082] The transaction execution facility uses a model called flattened nesting. In flattened nesting mode, stores performed by an inner transaction cannot be seen by other CPUs or the I / O subsystem until the stores of the outermost transaction are committed. Similarly, if a transaction aborts, all nested transactions are aborted, and all transaction stores of all nested transactions are discarded.

[0083] An example of nested transactions is shown in Fig.6. As shown, a first TBEGIN 600 instruction starts an outermost transaction 601, TBEGIN 602 starts a first nested transaction, and TBEGIN 604 starts a second nested transaction. In this example, TBEGIN 604 and TEND 606 define an innermost transaction 608. When TEND 610 is executed, transaction stores for the outermost transaction and all inner transactions are committed 612.

[0084] Unrestricted transaction: An unrestricted transaction is a transaction executed in the unrestricted transaction execution mode. While an unrestricted transaction is not restricted in the same way as a restricted transaction, it can still be aborted for a variety of reasons.

[0085] Unrestricted Transaction Execution Mode: When a transaction is initiated by the TBEGIN instruction, the CPU enters Unrestricted Transaction Execution Mode. While the CPU is in Unrestricted Transaction Execution Mode, the transaction nesting depth can vary from one to the maximum transaction nesting depth.

[0086] Non-transactional access: Non-transactional accesses are accesses to memory operands made by the CPU when it is not in transactional execution mode (i.e., classic memory accesses outside of a transaction). Furthermore, accesses made by the I / O subsystem are non-transactional. Furthermore, the NONTRANSACTIONAL STORE instruction can be used to perform a non-transactional memory access while the CPU is in unconstrained transactional execution mode.

[0087] Outer / outermost transaction: A transaction with a low transaction nesting depth is an outer transaction. A transaction with a transaction nesting depth of one is the outermost transaction.

[0088] An outermost TRANSACTION BEGIN instruction is one that executes when the transaction nesting depth is initially zero. An outermost TRANSACTION END instruction is one that causes the transaction nesting depth to change from one to zero. Furthermore, a CONDITIONAL TRANSACTION END instruction, which sets the condition code to zero, can also be considered the outermost form of the instruction. For a constrained transaction, this embodiment is the outermost transaction.

[0089] Interrupt filtering: If a transaction is aborted due to certain program exceptions, the program can optionally prevent the interrupt from occurring. This technique is called interrupt filtering. Interrupt filtering refers to the transaction class of the interrupt, the effective interrupt filtering control from the TRANSACTION BEGIN instruction, and an override of interrupt filtering during transaction execution in control register 0.

[0090] Transaction: A transaction contains the executed accesses to memory operands and selected general-purpose registers that have been modified while the CPU is in transactional execution mode. In an unrestricted transaction, memory operand accesses can include both transactional and non-transactional accesses. In a restricted transaction, memory operand accesses are limited to transactional accesses. From the perspective of other CPUs and the I / O subsystem, all memory operand accesses performed by the CPU appear to be a single concurrent operation. When a transaction aborts, transactional memory accesses are discarded, and all registers designated by the general-purpose register save mask of the outermost TRANSACTION BEGIN instruction are restored to their contents prior to transaction execution.

[0091] Transactional accesses: Transactional accesses are memory operand accesses that occur while the CPU is in transactional execution mode, with the exception of accesses that occur through the NONTRANSACTIONAL STORE instruction.

[0092] Transaction Execution Mode: The term transaction execution mode (also known as transaction execution mode) describes the general operation of the two modes of execution for constrained and unrestricted transactions. Thus, when describing the operation, the terms "unconstrained" and "restricted" are used to classify the execution mode of transactions.

[0093] If the transaction nesting depth is zero, the CPU is not in transactional execution mode (also called non-transactional execution mode).

[0094] From the CPU's perspective, fetch and store operations performed in transactional mode are no different from those performed when it is not in transactional mode.

[0095] In one embodiment of the z / Architecture, the transaction execution means is controlled by bits 8 through 9 of control register 0, bits 61 through 63 of control register 2, the transaction nesting depth, the transaction diagnostic block address, and the transaction abort program status word (PSW).

[0096] After an initial CPU reset, the contents of bit positions 8 through 9 of control register 0, bit positions 62 through 63 of control register 2, and the transaction nesting depth are set to zero. If the transaction execution control element, bit 8 of control register 0, is zero, the CPU cannot enter transaction execution mode.

[0097] Further details regarding the various controls are described below.

[0098] As indicated, the transaction execution facility is controlled by two bits in control register zero and three bits in control register two. For example: Control Register 0 Bits: In one embodiment, the bit assignments are as follows: Transaction Execution Control (TXC): Bit 8 of control register zero is the transaction execution control. This bit provides a mechanism by which the controlling program (e.g., operating system) can indicate whether the transaction execution facility may be used by the program. Bit 8 must be one to successfully enter transaction execution mode.

[0099] If bit 8 of control register 0 is zero, an attempted execution of the CONDITIONAL TRANSACTION END, EXTRACT TRANSACTION NESTING DEPTH, TRANSACTION BEGIN, and TRANSACTION END instructions results in the execution of a special operation.

[0100] Transaction Execution Interrupt Filtering Override (PIFO): Bit 9 of the control register, set to zero, indicates transactional interrupt filtering override. This bit provides a mechanism by which the control program can ensure that any program exception that occurs while the CPU is in transactional execution mode results in an interrupt, regardless of the effective interrupt filtering control specified or set by the TRANSACTION BEGIN instruction(s).

[0101] Bits of Control Register 2: In one embodiment, the assignments are as follows: Transaction Diagnostic Scope (TDS): Bit 61 of Control Register 2 controls the applicability of the Transaction Diagnostic Control (TDC) element in bits 62 to 63 of the register as follows: TDS Value Meaning 0 The TDC applies regardless of whether the CPU is in the problem or supervisor state. 1 The TDC only applies when the CPU is in the problem state. If the CPU is in the supervisor state, processing occurs as if the TDC were zero.

[0102] Transaction Diagnostic Control (TDC): Bits 62 through 63 of Control Register 2 are an unsigned 2-bit integer that can be used to cause transactions to be aborted arbitrarily for diagnostic purposes. An example of the TDC encoding is as follows: TDC Value Meaning 0 Normal operation; transactions are not aborted as a result of the TDC. 1 Abort any transaction on an arbitrary command, but before the execution of the outermost TRANSACTION END instruction or the CONDITIONAL TRANSACTION END instruction, which sets the condition code to zero. 2 Abort arbitrary transactions on an arbitrary command. 3 Reserved

[0103] If a transaction is aborted due to a non-zero TDC, the following can occur: ∗ The abort code is set to one of the codes 7 to 11, 13 to 18, or 255, where the value of the code is arbitrarily selected by the CPU; the condition code is set according to the abort code; or * For an unconstrained transaction, the condition code is set to 1. In this case, the abort code does not apply.

[0104] It depends on the model whether the TDC value 1 is realized. If the value is not realized, a value of 1 acts as if 2 was specified.

[0105] For a restricted transaction, a TDC value of 1 is treated as if a TDC value of 2 was specified.

[0106] If a TDC value of 3 is specified, the results cannot be predicted. Transaction Diagnostic Block Address (TDBA)

[0107] A valid transaction diagnostic block address (TDBA) is set from the first operand address of the outermost TRANSACTION BEGIN (TBEGIN) instruction if the B1 field of the instruction is non-zero. When the CPU is in primary space or access register mode, the TDBA specifies a location in the primary address space. When the CPU is in secondary space or home space mode, the TDBA specifies a location in the secondary or home address space, respectively. When DAT (dynamic address translation) is disabled, the TDBA specifies a location in physical memory.

[0108] The TDBA is used by the CPU to locate the transaction diagnostic block, referred to as the TDB specified by TBEGIN, if the transaction is subsequently aborted. The rightmost bits of the TDBA are zero, indicating that the TDB specified by TBEGIN is on a double-word boundary.

[0109] If the B1 field of an outermost TRANSACTION BEGIN (TBEGIN) instruction is zero, the transaction diagnostic block address is invalid, and no TDB specified by TBEGIN is saved if the transaction is subsequently aborted. Transaction Abort PSW (TAPSW)

[0110] During execution of the TRANSACTION BEGIN (TBEGIN) instruction, if the nesting depth is initially zero, the transaction abort PSW is set to the contents of the current PSW; and the instruction address of the transaction abort PSW specifies the next sequential instruction (that is, the instruction following the outermost TBEGIN instruction). During execution of the TRANSACTION BEGIN constrained (TBEGINC) instruction, if the nesting depth is initially zero, the transaction abort PSW is set to the contents of the current PSW, except that the instruction address of the transaction abort PSW specifies the TBEGINC instruction (and not the next sequential instruction following the TBEGINC instruction).

[0111] When a transaction aborts, the condition code in the transaction abort PSW is replaced with a code indicating the severity of the abort condition. If the transaction is subsequently aborted due to non-interruptive causes, the PSW is loaded from the transaction abort PSW; if the transaction is aborted due to interruptive causes, the transaction abort PSW is stored as the old interrupt PSW.

[0112] The transaction abort PSW is not changed during the execution of inner TRANSACTION BEGIN commands. Transaction nesting depth (TND)

[0113] For example, the transaction nesting depth is an unsigned 16-bit value that is incremented each time a TRANSACTION BEGIN instruction is executed with a condition code of 0, and decremented each time a TRANSACTION END or CONDITIONAL TRANSACTION END instruction is executed with a condition code of zero. The transaction nesting depth is reset to zero when a transaction is aborted or when the CPU is reset.

[0114] In one embodiment, a maximum TND of 15 is realized.

[0115] During an implementation, if the CPU is in constrained transaction execution mode, the transaction nesting depth is one. Furthermore, while the maximum TND can be represented as a 4-bit value, the TDN is defined as a 16-bit value to allow its examination in the transaction diagnostic block. Transaction Diagnostic Block (TDB)

[0116] When a transaction is aborted, various status information can be stored in a transaction diagnostic block (TDB) as follows: 1. TDB specified by TBEGIN: In an unconstrained transaction, if the B1 field for the outermost TBEGIN instruction is non-zero, the address of the instruction's first operand indicates the TDB specified by TBEGIN. This is a memory location specified by an application program that can be examined by the application's abort handler. 2. Program Interruption (PI) TDB: When an unconstrained transaction aborts due to an unfiltered program exception condition, or when a constrained transaction aborts due to a program exception condition (i.e., any condition that results in a program interrupt being detected), the PI TDB is stored in memory locations in the prefix area. This is available for the operating system to examine and log off for diagnostic reporting that it may provide. 3. Complaint TDB: If the transaction is aborted due to a program exception condition that results in a complaint (i.e., the condition causes interpretive execution to terminate and control to return to the host program), a TDB is stored in a memory location specified in the state description block for the guest operating system.

[0117] In one embodiment, the TDB specified by TBEGIN is stored only if the TDB address is valid (i.e., if the B1 field of the outermost TBEGIN instruction is not zero).

[0118] For aborts due to unfiltered program exception conditions, only either the PI TDB or the complaint TDB is saved. Thus, it may be possible to save zero, one, or two TDBs for an abort.

[0119] Further details regarding an example for each of the TDBs are described below: TDB specified by TBEGIN: The 256-byte memory location specified by a valid transaction diagnostic block address. If the transaction diagnostic block address is valid, the TDB specified by TBEGIN is saved upon transaction abort. The TDB specified by TBEGIN affects all memory protection mechanisms in effect during the execution of the outermost TRANSACTION BEGIN instruction. A PER (Program Event Record) memory change event for each section of the TDB specified by TBEGIN is detected during the execution of the outermost TBEGIN instruction, not during transaction abort processing.

[0120] One purpose of PER is to support debugging programs. It allows the program to be alerted to the following types of events, for example: ∗ Execute a successful branch instruction. This option is provided so that an event occurs only if the branch target location is within the specified memory range. ∗ Fetch an instruction from the designated memory area. * Modify the contents of the designated memory range. This option is provided so that an event only occurs if the memory range lies within the designated address spaces. ∗ Executing a STORE USING REAL ADDRESS command. ∗ Executing the CONDITIONAL TRANSACTION END or TRANSACTION END command.

[0121] The program may optionally specify that one or more of the above event types be detected, with the exception that the STORE USING REAL ADDRESS event can only be specified in conjunction with the memory change event. Information regarding a PER event is provided to the program via a program interrupt, with the cause of the interrupt identified in the interrupt code.

[0122] If the transaction diagnostic block address is not valid, no TDB specified by TBEGIN is saved.

[0123] Program interrupt TDB: Real memory locations 6144 to 6399 (1800 to 18FF hex). The program interrupt TDB is stored when a transaction is aborted due to a program interrupt. If a transaction is aborted due to other reasons, the contents of the program interrupt TDB cannot be predicted.

[0124] The program interrupt TDB is not subject to any protection mechanism. PER memory change events are not detected for the program interrupt TDB if it is saved during a program interrupt.

[0125] Complaint TDB: The real 256-byte host memory location is specified by memory locations 488 to 495 of the state description. The complaint TDB is stored when an aborted transaction results in a guest interrupt complaint (i.e., complaint code 8). If a transaction is aborted due to other causes, the contents of the complaint TDB cannot be predicted. The complaint TDB is not subject to any protection mechanism.

[0126] As in Fig. 7, the fields of a transaction diagnostic block 700 in one embodiment are as follows: Format 702: Byte 0 contains a validity and format specification as follows: Value Meaning 0 The remaining fields of the TDB cannot be predicted. 1 A TDB with Format 1, the remaining fields of which are described below. 2 to 255 Reserved

[0127] A TDB in which the format field is null is called a null TDB.

[0128] Flag bits 704: Byte 1 contains various information as follows: Conflict Token Validity (CTV): When a transaction aborts due to a fetch or store conflict (i.e., abort code 9 or 10, respectively), bit 0 of byte 1 represents the conflict token validity. If the CTV is one, the conflict token 710 in bytes 16 through 23 of the TDB contains the logical address where the conflict was detected. If the CTV is zero, bytes 16 through 23 of the TDB cannot be predicted.

[0129] If a transaction aborts due to a cause other than a fetch or store conflict, bit 0 of byte 1 is stored as zero.

[0130] Constrained Transaction Indication (CTI): When the CPU is in constrained transaction execution mode, bit 1 of byte 1 is set to one. When the CPU is in unconstrained transaction execution mode, bit 1 of byte 1 is set to zero.

[0131] Reserved: Bits 2 to 7 of byte 1 are reserved and stored as zeros.

[0132] Transaction Nesting Depth (TND) 706: Bytes 6 to 7 contain the transaction nesting depth if the transaction was aborted.

[0133] Transaction Abort Code (TAC) 708: Bytes 8 through 15 contain an unsigned 64-bit transaction abort code. Each code indicates a reason for an aborted transaction.

[0134] It is model-dependent whether the transaction abort code is stored in the program interrupt TDB when a transaction is aborted as a result of conditions that are not a program interrupt.

[0135] Conflict Token 710: For transactions aborted due to a fetch or store conflict (i.e., abort code 9 or 10, respectively), bytes 16 through 23 contain the logical address of the memory location where the conflict was detected. The conflict token is significant if the CTV bit, bit 0 of byte 1, is one.

[0136] If the CTV bit is zero, bytes 16 to 23 cannot be predicted.

[0137] Due to speculative execution by the CPU, the conflict token may indicate a memory location that would not necessarily be accessed by the transaction's conceptual execution sequence.

[0138] Instruction Address of an Aborted Transaction (ATIA) 712: Bytes 24 through 31 contain an instruction address that identifies the instruction that was executing when an abort was detected. If a transaction aborted as a result of abort codes 2, 5, 6, 11, 13, 17, 18, or 256 or greater, or if a transaction aborted as a result of abort codes 4 or 12 and the program exception is void, the ATIA points directly to the instruction that was executing. If a transaction aborted as a result of abort codes 4 or 12 and the program exception is not void, the ATIA points to a location after the instruction that was executing.

[0139] If the transaction was aborted as a result of abort codes 7 to 10, 14 to 16, or 255, the ATIA does not necessarily indicate the exact instruction that caused the abort, but may point to an earlier or later instruction in the transaction.

[0140] If a transaction is aborted as a result of an instruction that is the target of an Execute instruction, the ATIA identifies the Execute instruction, pointing either to the instruction or to a later time, depending on the abort code. The ATIA does not specify the target of the Execute instruction.

[0141] The ATIA affects the addressing mode when the transaction is aborted. In 24-bit addressing mode, bits 0 through 40 of the field contain zeros. In 31-bit addressing mode, bits 0 through 32 of the field contain zeros.

[0142] It is model-dependent whether the instruction address of the aborted transaction is stored in the program interrupt TDB when a transaction is aborted due to conditions that are not a program interrupt.

[0143] If a transaction aborts as a result of an abort code 4 or 12 and the program exception is not void, the ATIA does not point to the instruction causing the abort. By subtracting the number of halfwords specified by the interrupt length code (ILA) from the ATIA, the instruction causing the abort can be identified in the conditions that cause suppression or termination, or, in the case of non-PER events, execute. If a transaction aborts as a result of a PER event or no other program exception is present, the ATIA cannot be predicted.

[0144] If the transaction diagnostic block address is valid, the ILC can be examined in the program interrupt identifier (PIID) in bytes 36 through 39 of the TDB specified by TBEGIN. If no filtering is applied, the ILC can be examined in the PIID at memory locations 140 through 143 in real memory.

[0145] Exception Access Identifier (EAID) 714: For transactions aborted as a result of certain filtered program exceptions, byte 32 of the TDB specified by TBEGIN contains the exception access identifier. In a z / Architecture example, the format of the EAID and the cases for which it is stored are the same as those described in real storage location 160 when the exception results in an interrupt, as described in the principles of operation incorporated by reference above.

[0146] For transactions aborted for other reasons, including any exceptions that result in a program interrupt, byte 32 cannot be predicted. Byte 32 is unpredictable in the program interrupt TDB.

[0147] This field is stored only in the TDB identified by the transaction diagnostic block address; otherwise, the field is reserved. The EAID is stored only for access-list-controlled or DAT protection, ASCE type, page translation, first-range translation, second-range translation, third-range translation, and segment translation program exceptions.

[0148] Data Exception Code (DXC) 716: For transactions aborted as a result of filtered data exception program exceptions, byte 33 of the TDB specified by TBEGIN contains the data exception code. In one z / Architecture example, the format of the DXC and the cases for which it is stored are the same as those described in real memory location 147 when the exception condition results in an interrupt, as described in the principles of operation incorporated by reference above. In one example, memory location 147 contains the DXC.

[0149] For transactions aborted for other reasons, including any exceptions that result in a program interrupt, byte 33 cannot be predicted. Byte 33 is unpredictable in the program interrupt TDB.

[0150] This field is stored only in the TDB identified by the transaction diagnostic block address; otherwise, the field is reserved. The DXC is stored only for data program exceptions.

[0151] Program Interrupt Identifier (PIID) 718: For transactions aborted as a result of filtered program exceptions, bytes 36 through 39 of the TDB specified by TBEGIN contain the program interrupt identifier. In a z / Architecture example, the format of the PIID is the same as that described in real memory locations 140 through 143 when the condition results in an interrupt (as described in the principles of operation incorporated by reference above), except that the instruction length code in bits 13 through 14 of the PIID corresponds to the instruction on which the exception was detected.

[0152] For transactions aborted for other reasons, including exceptions that result in a program interrupt, bytes 36 through 39 cannot be predicted. Bytes 36 through 39 are unpredictable in the program interrupt TDB.

[0153] This field is stored only in the TDB identified by the transaction diagnostic block address; otherwise, the field is reserved. The program interrupt identifier is stored only for program exceptions.

[0154] Translation Exception Identifier (TEID) 720: For transactions aborted as a result of one of the following filtered program exceptions, bytes 40 to 47 of the TDB specified by TBEGIN contain the translation exception identifier. ∗ Access list controlled or DAT protection ∗ ASCE type ∗ Page translation ∗ First translation of an area ∗ Second translation of an area ∗ Third translation of an area ∗ Segment translation exception

[0155] In a z / Architecture example, the format of the TEID is the same as that described in real memory locations 168 through 175 when the condition results in an interrupt, as described in the principles of operation incorporated by reference above.

[0156] For transactions aborted for other reasons, including exceptions that result in a program interrupt, bytes 40 through 47 cannot be predicted. Bytes 40 through 47 are unpredictable in the program interrupt TDB.

[0157] This field is stored only in the TDB identified by the transaction diagnostic block address; otherwise, the field is reserved.

[0158] Breaking Event Address 722: For transactions aborted as a result of filtered program exceptions, bytes 48 through 55 of the TDB specified by TBEGIN contain the breaking event address. For a z / Architecture example, the format of the breaking event address is the same as that described in real memory locations 272 through 279 if the condition results in an interrupt, as described in the principles of operation incorporated by reference above.

[0159] For transactions aborted for other reasons, including exceptions that result in a program interrupt, bytes 48 through 55 cannot be predicted. Bytes 48 through 55 are unpredictable in the program interrupt TDB.

[0160] This field is stored only in the TDB identified by the transaction diagnostic block address; otherwise, the field is reserved.

[0161] Further details regarding breaking events are described below.

[0162] In one embodiment of the z / Architecture, if the PER-3 facility is installed, it provides the program with the address of the last instruction used to cause a break in the CPU's sequential execution. Recording the breaking event address can be used as a debugging aid for detecting wild branches. For example, this facility provides a 64-bit register in the CPU called the breaking event address register. Whenever an instruction other than TRANSACTION ABORT causes a break in sequential instruction execution (i.e., the instruction address in the PSW is replaced rather than incremented by the length of the instruction), the address of that instruction is replaced in the breaking event address register. Whenever a program interrupt occurs, regardless of whether PER is specified, the current contents of the breaking event address register are stored in real memory locations 272 through 279.

[0163] If the instruction causing the breaking event is the target of an Execute instruction (EXECUTE or EXECUTE RELATIVE LONG), the instruction address used to fetch the Execute instruction is placed in the breaking event address register.

[0164] Bei einer Ausführungsform der z / Architecture tritt ein Breaking Event immer dann auf, wenn einer der folgenden Befehle ein Verzweigen verursacht: BRANCH AND LINK (BAL, BALR); BRANCH AND SAVE (BAS, BASR); BRANCH AND SAVE AND SET MODE (BASSM); BRANCH AND SET MODE (BSM); BRANCH AND STACK (BAKR); BRANCH ON CONDITION (BC, BCR); BRANCH ON COUNT (BCT, BCTR, BCTG, BCTGR); BRANCH ON INDEX HIGH (BXH, BXHG); BRANCH ON INDEX LOW OR EQUAL (BXLE, BXLEG); BRANCH RELATIVE ON CONDITION (BRC); BRANCH RELATIVE ON CONDITION LONG (BRCL); BRANCH RELATIVE ON COUNT (BRCT, BRCTG); BRANCH RELATIVE ON INDEX HIGH (BRXH, BRXHG); BRANCH RELATIVE ON INDEX LOW OR EQUAL (BRXLE, BRXLG); COMPARE AND BRANCH (CRB, CGRB); COMPARE AND BRANCH RELATIVE (CRJ, CGRJ); COMPARE IMMEDIATE AND BRANCH (CIB, CGIB); COMPARE IMMEDIATE AND BRANCH RELATIVE (CIJ, CGIJ); COMPARE LOGICAL AND BRANCH (CLRB, CLGRB); COMPARE LOGICAL AND BRANCH RELATIVE (CLRJ, CLGRJ); COMPARE LOGICAL IMMEDIATE AND BRANCH (CLIB, CLGIB);and COMPARE LOGICAL IMMEDIATE AND BRANCH RELATIVE (CLIJ, CLGIJ).;

[0165] A breaking event also occurs whenever one of the following commands is executed: BRANCH AND SET AUTHORITY (BSA); BRANCH IN SUBSPACE GROUP (BSG); BRANCH RELATIVE AND SAVE; BRANCH RELATIVE AND SAVE LONG (BRASL); LOAD PSW (LPSW); LOAD PSW EXTENDED (LPSWE); PROGRAM CALL (PC); PROGRAM RETURN (PR); PROGRAM TRANSFER (PT); PROGRAM TRANSFER WITH INSTANCE (PTI); RESUME PROGRAM (RP); and TRAP (TRAP2, TRAP4).

[0166] As a result of a transaction being aborted (either implicitly or as a result of the TRANSACTION ABORT command), no breaking event occurs.

[0167] Model-dependent diagnostic information 724: Bytes 112 to 127 contain model-dependent diagnostic information.

[0168] For all abort codes except 12 (filtered program interrupt), the model-dependent diagnostic information is saved in each TDB that is stored.

[0169] In one embodiment, the model-dependent diagnostic information includes the following: * Bytes 112 through 119 contain a 64-bit vector called transaction execution branch information (TXBI). Each of the first 63 bits of the vector specifies the results of executing a branch instruction while the CPU was in transaction execution mode, as follows: Value Meaning 0 The command is executed without branching. 1 The command is executed with branching.

[0170] Bit 0 represents the result of the first such branch instruction; the

[0171] Bit 2 represents the result of the second such instruction, and so on.

[0172] If fewer than 63 branch instructions were executed while the CPU was in transaction execution mode, the rightmost non-branch bits (including bit 63) are set to zero. If more than 63 branch instructions were executed, bit 63 of the TXBI is set to one.

[0173] Bits in the TXBI are set by instructions that are capable of causing a breaking event listed above, with the following exceptions: - No restricted instruction causes a bit to be set in the TXBI. For z / Architecture instructions, for example, if the M1 field of the BRANCH ON CONDITION, BRANCH RELATIVE ON CONDITION, or BRANCH RELATIVE ON CONDITION LONG instruction is zero, or if the R2 field of the following instruction is zero, it is model-dependent whether executing the instruction causes a bit to be set in the TXBI. ∗ BRANCH AND LINK (BALR);BRANCH AND SAVE (BASR); BRANCH AND SAVE AND SET MODE (BASSM); BRANCH AND SET MODE (BSM); BRANCH ON CONDITION (BCR); and BRANCH ON COUNT (BCTR, BCTGR) ∗ For termination conditions caused by a host access exception, bit position 0 of byte 127 is set to one. For all other termination conditions, bit position 0 of byte 127 is set to zero. * For abort conditions detected by the load / store unit (LSU), the rightmost five bits of byte 127 contain an indication of the cause. For abort conditions not detected by the LSU, byte 127 is reserved.

[0174] General Registers 730: Bytes 128 to 255 contain the contents of general registers 0 to 15 at the time the transaction is aborted. The registers are stored in ascending order, starting with general register 0 in bytes 128 to 135, general register 1 in bytes 136 to 143, and so on.

[0175] Reserved: All other fields are reserved. Unless otherwise specified, the contents of reserved fields cannot be predicted.

[0176] As perceived by other CPUs and the I / O subsystem, the save of the TDB(s) during a transaction abort is a multiple access reference that occurs after all non-transactional stores.

[0177] A transaction may be aborted for reasons beyond the scope of the immediate configuration in which it is executing. For example, transient events detected by a hypervisor (such as LPAR or zNM) may cause a transaction to be aborted.

[0178] The information provided in the transaction diagnostic block is intended for diagnostic purposes and is substantially correct. Because an abort may have been caused by an event outside the immediate configuration, information such as the abort code or program interrupt identifier may not accurately reflect the conditions within the configuration and should therefore not be used when determining program actions.

[0179] When a transaction aborts as a result of a data exception program exception, and both the AFP register control, bit 45 of control register 0, and the effective control (F) allow floating-point operation are one, in addition to the diagnostic information saved in the TDB, the data exception code (DXC) is placed in byte 2 of the floating-point control register (FPCR), regardless of whether filtering is applied to the program exception.

[0180] If a transaction is aborted and the AFP register control and / or the effective control (F) allow floating point operation are zero, the DXC is not placed in the FPCR.

[0181] In an embodiment as provided herein, when the transaction execution facility is installed, several general commands are provided, including, for example, EXTRACT TRANSACTION NESTING DEPTH, NONTRANSACTIONAL STORE, TRANSACTION ABORT, TRANSACTION BEGIN, and TRANSACTION END. When the conditional transaction termination facility is installed, the CONDITIONAL TRANSACTION END command is further provided.

[0182] When the CPU is in transaction execution mode, attempts to execute certain transactions are restricted and cause the transaction to abort.

[0183] Attempted execution of restricted instructions when issued in restricted transaction execution mode may also result in a restricted interruption of the transaction or may cause execution to proceed as if the transaction were unrestricted.

[0184] For example, in a z / Architecture example, restricted instructions include the following nonprivileged instructions: COMPARE AND SWAP AND STORE; MODIFY RUNTIME INSTRUMENTATION CONTROLS; PERFORM LOCKED OPERATION; PREFETCH DATA (RELATIVE LONG) if the code in the M1 field is 6 or 7; STORE CHARACTERS UNDER MASK HIGH if the M3 field is zero and the code in the R1 field is 6 or 7; STORE FACILITY LIST EXTENDED; STORE RUNTIME INSTRUMENTATION CONTROLS; SUPERVISOR CALL; and TEST RUNTIME INSTRUMENTATION CONTROLS.

[0185] In the above list, COMPARE AND SWAP AND STORE and PERFORM LOCKED OPERATION are complex instructions that can be implemented more effectively using basic instructions in TX mode. The PREFETCH DATA and PREFETCH DATA RELATIVE LONG cases are restricted because codes 6 and 7 release a line of buffer memory, potentially requiring data commit before executing a transaction. SUPERVISOR CALL is restricted because it causes an interrupt (causing a transaction to be aborted).

[0186] Under the conditions listed below, the following commands are restricted: ∗ BRANCH AND LINK (BALR), BRANCH AND SAVE (BASR), and BRANCH AND SAVE AND SET MODE if the R2 field of the instruction is not zero and branch tracing is enabled. ∗ BRANCH AND SAVE AND SET MODE and BRANCH AND SET MODE if field R2 is not zero and branch tracing is enabled; SET ADDRESSING MODE if mode tracing is enabled. ∗ CONDITIONAL TRANSACTION END if the transaction nesting depth is greater than one. ∗ MONITOR CALL when a Monitor Event condition is detected.

[0187] The above list contains instructions that potentially create trace entries. If these instructions are allowed to execute as a transaction and create trace entries, and the transaction is subsequently aborted, the trace table pointer in control register 12 would be advanced, but the memory entries in the trace table would be discarded. This would leave a conflicting gap in the trace table; therefore, the instructions are restricted in the cases where they would create trace entries.

[0188] When the CPU is in transaction mode, the following instructions are restricted depending on the model: CIPHER MESSAGE; CIPHER MESSAGE WITH CFB; CIPHER MESSAGE WITH CHAINING; CIPHER MESSAGE WITH COUNTER; CIPHER MESSAGE WITH OFB; COMPRESSION CALL; COMPUTE INTERMEDIATE MESSAGE DIGEST; COMPUTE LAST MESSAGE DIGEST; COMPUTE MESSAGE AUTHENTICATION CODE; CONVERT UNICODE-16 TO UNICODE-32; CONVERT UNICODE-16 TO UNICODE-8; CONVERT UNICODE-32 TO UNICODE-16; CONVERT UNICODE-32 TO UNICODE-8; CONVERT UNICODE-8 TO UNICODE-16; CONVERT UNICODE-8 TO UNICODE-32; PERFORM CRYPTOGRAPHIC COMPUTATION; RUNTIME INSTRUMENTATION OFF; and RUNTIME INSTRUMENTATION ON.

[0189] Each of the above instructions is currently either implemented by the hardware coprocessor or was previously in control routines and is therefore considered restricted.

[0190] If the effective control Allow AR Modification (A) is zero, the following commands are restricted: COPY ACCESS; LOAD ACCESS MULTIPLE; LOAD ADDRESS EXTENDED; and SET ACCESS.

[0191] Each of the above instructions causes the contents of an access register to be modified. If the control element of the TRANSACTION BEGIN instruction is zero, the program explicitly states that modification of the access register should not be permitted.

[0192] If the Allow floating point operation (F) control is zero, floating point instructions are restricted.

[0193] Under certain circumstances, the following instructions may be restricted: EXTRACT CPU TIME; EXTRACT PSW; STORE CLOCK; STORE CLOCK EXTENDED; and STORE CLOCK FAST.

[0194] Each of the above commands refers to a complaint control in the interpretive description of the execution state. If the hypervisor has set the complaint control for these commands, their execution time may be extended due to hypervisor implementations; thus, they are considered restricted when a complaint occurs.

[0195] If an unrestricted transaction is aborted because of an attempted execution of a restricted instruction, the transaction abort code in the transaction diagnostic block is set to 11 (restricted instruction) and the condition code is set to 3, with the following exception: If an unrestricted transaction is aborted as a result of the attempted execution of an instruction that would otherwise result in a privileged operation exception, it cannot be predicted whether the abort code will be set to 11 (restricted instruction) or 4 (unfiltered program interrupt resulting from the detection of a program interrupt of the privileged operation).If an unconstrained transaction aborts as a result of an attempted execution of PREFETCH DATA (RELATIVE LONG) when the code in field M1 is 6 or 7, or of STORE CHARACTERS UNDER MASK HIGH when field M3 is zero and the code in field R1 is 6 or 7, it cannot be predicted whether the abort code will be set to 11 (restricted instruction) or 16 (cach other data). If an unconstrained transaction aborts as a result of an attempted execution of MONITOR CALL and both a monitor event condition and a specification exception condition exist, it cannot be predicted whether the abort code will be set to 11 or 4, or, if the program interrupt is filtered, to 12.

[0196] Additional instructions may be restricted in a restricted transaction. While these instructions are not currently defined as restricted in an unrestricted transaction, they may be restricted in an unrestricted transaction on future processors under certain circumstances.

[0197] Certain restricted instructions may be allowed in transaction execution mode on future processors. Therefore, the program should not rely on the transaction being aborted as a result of an attempted execution of a restricted instruction. The TRANSACTION ABORT instruction should be used to reliably abort a transaction.

[0198] For an unrestricted transaction, the program should provide an alternative non-transactional code path to accommodate a transaction that aborts as a result of a restricted instruction.

[0199] During operation, if the transaction nesting depth is zero, executing the TRANSACTION BEGIN (TBEGIN) instruction that results in a zero condition code causes the CPU to enter the unconstrained transaction mode. If the transaction nesting depth is zero, executing the TRANSACTION BEGIN constrained (TBEGINC) instruction that results in a zero condition code causes the CPU to enter the constrained transaction mode.

[0200] Unless explicitly stated otherwise, all rules that apply to non-transactional execution also apply to transactional execution. The following describes additional processing characteristics while the CPU is in transactional mode.

[0201] If the CPU is in unconstrained transaction mode, executing a TRANSACTION BEGIN instruction that results in a zero condition code causes the CPU to remain in unconstrained transaction mode.

[0202] From the CPU's perspective, fetches and stores performed while in transactional mode are no different from those performed while not in transactional mode. From the perspective of other CPUs and the I / O subsystem, all accesses to memory operands while the CPU is in transactional mode appear to be concurrent accesses to a single block. That is, accesses to all bytes in a halfword, word, doubleword, or quadword are specified so that they appear to be block-synchronous as perceived by other CPUs and I / O programs (e.g., channel programs). The halfword, word, doubleword, or quadword is referred to as a block in this section.If a fetch-type reference is specified to be seemingly concurrent within a block, no memory accesses to the block by any other CPU or I / O program are permitted during the time bytes contained in the block are being fetched. If a store-type reference is specified to be seemingly concurrent within a block, no access to the block, either fetch or store, is permitted by any other CPU or I / O program during the time bytes in the block are being stored.

[0203] Memory accesses to instruction and DAT and ART (access register table) table fetches follow non-transaction rules.

[0204] The CPU normally ends transaction execution mode by issuing a TRANSACTION END instruction, which causes the transaction nesting depth to zero, or a CONDITIONAL TRANSACTION END instruction, which sets the condition code to zero; in either case, the transaction ends.

[0205] When the CPU exits transactional mode by executing a TRANSACTION END instruction or a CONDITIONAL TRANSACTION END instruction that sets the condition code to zero, all stores that occurred during transactional mode are committed; that is, the stores appear to occur as a single block-synchronous operation from the perspective of other CPUs and the I / O subsystem.

[0206] A transaction can be aborted implicitly for a variety of reasons, or it can be aborted explicitly using the TRANSACTION ABORT command. Examples of possible causes for a transaction abort, the corresponding abort code, and the condition code stored in the transaction abort PSW are described below.

[0207] External interrupt: The transaction abort code is set to 2, and the condition code in the transaction abort PSW is set to 2. The transaction abort PSW is saved as an external old PSW as part of the external interrupt processing.

[0208] Program Break (Unfiltered): A program break condition that results in a break (i.e., an unfiltered condition) causes the transaction to abort with code 4. The condition code in the transaction abort PSW is specifically set to the program break code. The transaction abort PSW is stored as the program's old PSW as part of the break processing.

[0209] An instruction that would otherwise cause a transaction to abort due to an operation exception may produce alternative results: for an unconstrained transaction, the transaction may instead abort with an abort code 11 (constrained instruction); for a constrained transaction, a transaction constraint interrupt may be detected instead of the operation exception.

[0210] If a PER (Program Event Recording) event is detected in conjunction with another unfiltered program exception, the condition code is set to 3.

[0211] Machine Check Interrupt: The transaction abort code is set to 5, and the condition code in the transaction abort PSW is set to 2. The transaction abort PSW is saved as the old machine check PSW as part of the machine check interrupt processing.

[0212] I / O interrupt: The transaction abort code is set to 6, and the condition code in the transaction abort PSW is set to 2. The transaction abort PSW is saved as the old I / O PSW as part of the I / O interrupt processing.

[0213] Fetch Overflow: A fetch overflow condition is detected when the transaction attempts to fetch from a greater number of memory locations than the CPU supports. The transaction abort code is set to 7, and the condition code is set to 2 or 3.

[0214] Store Overflow: A store overflow condition is detected when a transaction attempts to store to a greater number of memory locations than the CPU supports. The transaction abort code is set to 8, and the condition code is set to 2 or 3.

[0215] Allowing condition code 2 or 3 in response to a fetch or store overflow abort allows the CPU to indicate potentially repeatable situations (e.g., condition code 2 indicates that reexecution of the transaction may be productive; while condition code 3 does not recommend reexecution).

[0216] Fetch conflict: A fetch conflict condition is detected when another CPU or the I / O subsystem attempts to store to a memory location fetched by this CPU as part of a transaction. The transaction abort code is set to 9, and the condition code is set to 2.

[0217] Store conflict: A store conflict condition is detected when another CPU or the I / O subsystem attempts to access a memory location saved by this CPU during transaction execution. The transaction abort code is set to 10, and the condition code is set to 2.

[0218] Restricted instruction: When the CPU is in transaction execution mode, an attempted execution of a restricted instruction causes the transaction to abort. The transaction abort code is set to 11 and the condition code is set to 3.

[0219] When the CPU is in restricted transaction execution mode, it is impossible to predict whether an attempted execution of a restricted instruction will result in a transaction restriction interrupt or a restricted instruction abort. The transaction will still be aborted, but the abort code may indicate one of the reasons.

[0220] Program exception (filtered): A program exception that does not result in an interrupt (that is, a filtered condition) causes the transaction to abort with a transaction abort code of 12. The condition code is set to 3.

[0221] Nesting Depth Exceeded: The Nesting Depth Exceeded condition is detected when the transaction nesting depth is the maximum allowed for the configuration, and a TRANSACTION BEGIN command is executed. The transaction is aborted with a transaction abort code of 13, and the condition code is set to 3.

[0222] Cache fetch-related condition: A condition affecting memory locations fetched by the transaction is detected by the CPU cache circuitry. The transaction is aborted with a transaction abort code of 13, and the condition code is set to 2 or 3.

[0223] Cache-related condition: A condition affecting memory locations to which the transaction is storing is detected by the CPU cache circuit. The transaction is aborted with a transaction abort code of 15, and the condition code is set to 2 or 3.

[0224] Other cache condition: Another cache condition is detected by the CPU cache circuit. The transaction is aborted with a transaction abort code of 16, and the condition code is set to 2 or 3.

[0225] If, during transaction execution, the CPU accesses instructions or memory operands using logical addresses mapped to the same absolute address, the transaction aborts depending on the model. If the transaction aborts as a result of accesses using different logical addresses mapped to the same absolute address, abort code 14, 15, or 16 is set, depending on the condition.

[0226] CTEND negative operand condition: A CTEND negative operand condition is detected when the CONDITIONAL TRANSACTION END instruction is executed and the contents of the second operand are negative. The transaction is aborted with a transaction abort code of 17, and the condition code is set to 3.

[0227] CTEND Timeout Condition: A CTEND timeout condition is detected when the execution of a CONDITIONAL TRANSACTION END command exceeds a model-dependent limit. The transaction abort code is set to 18, and the condition code is set to 2.

[0228] Miscellaneous Condition: A miscellaneous condition is any other condition detected by the CPU that causes the transaction to abort. The transaction abort code is set to 255, and the condition code is set to 2 or 3.

[0229] When multiple configurations are running on the same machine (e.g., in logical partitions or virtual machines), a transaction may be aborted as a result of an external machine check or I / O interrupt that occurred in another configuration.

[0230] While examples were provided above, other causes of transaction aborts may be provided, along with corresponding abort codes and condition codes. For example, a cause may be a restart interrupt, in which the transaction abort code is set to 1 and the condition code in the transaction abort PSW is set to 2. The transaction abort PSW is saved as an old restart PSW as part of the restart processing. As another example, a supervisor call condition may be a cause, in which the abort code is set to 3 and the condition code in the transaction abort PSW is set to 3. Other or diverse examples are also possible.

[0231] Notes: 1. The other condition may arise from: ∗ Instructions in the z / Architecture such as COMPARE AND REPLACE DAT TABLE ENTRY, COMPARE AND SWAP AND PURGE, INVALIDATE DAT TABLE ENTRY, INVALIDATE PAGE TABLE ENTRY, PERFORM FRAME MANAGEMENT FUNCTION, where the control NQ is zero and the control SK is one, SET STORAGE KEY EXTENDED, where the control NQ is zero and which is executed by a different CPU in the configuration; where the condition code is set to 2. * An operator function such as Reset, Restart, or Stop, or the equivalent sequence of SIGNAL PROCESSOR, is executed in the CPU. The condition code is set to 2. ∗ Any other condition not listed above; the condition code is set to 2 or 3. 2. The memory location where fetch and store conflicts are detected can be anywhere in the same cache line. 3. Under certain conditions, the CPU may not be able to distinguish between similar termination conditions. For example, a fetch or memory overflow cannot be distinguished from a corresponding fetch or memory conflict. 4. Speculative execution of multiple instruction paths by the CPU may cause a transaction to abort due to conflict or overflow conditions, even if such conditions do not occur in the conceptual sequence. When the CPU is in constrained transaction execution mode, it may temporarily prohibit speculative execution, allowing attempts to execute the transaction without speculatively detecting such conflicts or overflows.

[0232] Executing a TRANSACTION ABORT instruction aborts the transaction. The transaction abort code is set from the address of the second operand. The condition code is set to 2 or 3 depending on whether bit 63 of the address of the second operand is zero or one.

[0233] As mentioned above, the Transaction Facility is used for unrestricted transactions (as well as restricted transactions) and related processing, including, but not limited to, Transaction Termination and Conditional Transaction Termination, provided the Conditional Transaction Termination Facility is installed. Further details regarding each of these aspects are described below.

[0234] In one embodiment, processing an unrestricted transaction includes: ∗ If TND = 0: ) If B1 ≠ 0, the address of the transaction diagnostic block is set from the address of the first operand. ) The transaction abort PSW is set to the address of the next sequential instruction. ) General register pairs, designated by field I2, are stored in a model-dependent memory location. - Not directly accessible through the program. ∗ Effective controls PIFC, A, & F calculated ) Effective A = TBEGIN A & each outer A ) Effective F = TBEGIN F & each outer F ) Effective PIFC = max(TBEGIN PIFC, each outer PIFC) ∗ Transaction nesting depth (TND) increased ∗ When TND changes from 0 to 1, CPU enters transaction execution mode ∗ Condition code set to zero ) If the command following TBEGIN takes control: - Successful TBEGIN command is indicated by CC0 - Aborted transaction is indicated by CC not equal to zero ∗ Exceptions: ) Abort code 13 if nesting depth is exceeded ) Access exception (one of various PICs) when field B1 is not zero and the memory operand cannot be accessed for a memory operation ) Execution exception (PIC 0003) if the TBEGIN command is the target of an Execute command ) Operation exception (PIC 0001) if the transaction execution facility is not installed ) PIC 0006, if - PIFC is invalid (value 3) or - Address of the second operand is not double-word aligned or ) PIC 0013 hex if the control transaction execution (CR0.8) is zero or ) PIC 0018 hex, if output is in restricted TX mode

[0235] As stated above, an unrestricted (or restricted) transaction can be terminated by a TRANSACTION END (TEND) command. Further details regarding the processing of a TRANSACTION END (TEND) command are described here.

[0236] Initially, various exception checks are performed based on the processor receiving the TEND instruction (e.g., fetching, receiving, etc.). If an exception is present, the exception is handled. For example, if TRANSACTION END is the target of an Execute instruction, the operation is suppressed, and an execution exception is detected. A special operation exception is detected, and the operation is suppressed if the transaction execution control element, bit 8 of CR0, is zero. Furthermore, an operation exception is detected, and the operation is suppressed if the transaction execution facility is not installed in the configuration.

[0237] However, if no execution exception is detected, the transaction nesting depth is incremented (e.g., by one). A check is made to determine whether the transaction nesting depth is zero after the increment. If the transaction nesting depth is zero, all memory accesses made by the transaction are committed. The CPU then exits transaction execution mode, and the instruction is executed.

[0238] If the transaction nesting depth is not zero, the TRANSACTION END command is simply executed.

[0239] If the CPU is in transaction execution mode at the beginning of the operation, the condition code is set to 0; otherwise, the condition code is set to 2.

[0240] Note that the effective control Allow Floating-Point Operation (F), the control Allow AR Modification (A), and the control Filter Program Interrupts (PIFC) are reset to their respective values ​​prior to the TRANSACTION BEGIN command that caused the level to exit. Furthermore, a serialization function takes place when the operation is executed.

[0241] The PER command fetch and transaction end events detected when the outermost TRANSACTION END command is executed do not cause the transaction to be aborted.

[0242] In a further embodiment, if the facility for terminating conditional transactions is installed, in addition to the TRANSACTION END command, there is the CONDITIONAL TRANSACTION END command. The CONDITIONAL TRANSACTION END (CTEND) command is a special command that allows a program executing in unconstrained transaction execution mode to examine a memory location being modified by another CPU or the I / O subsystem and to take action based on this examination. For example, based on the examined data, a transaction execution can be terminated or aborted, or the decision to terminate / abort can be delayed until, for example, a predefined event occurs, for example, that a predefined relationship to a selected time interval is observed (the time interval is, for example,exceeded) or the data being examined becomes a pre-specified value, as described below. Furthermore, additional or different events can be used to end a delay, such as an interrupt becoming pending or other events.

[0243] An embodiment of a format of a CONDITIONAL TRANSACTION END command is described with reference to Fig.8. For example, a CONDITIONAL TRANSACTION END instruction 800 includes a plurality of operation code fields 802a, 802b specifying an operation code designating a conditional transaction end operation; a mask field (M1) 804; an index field (X2) 806; a base field (B2) 808; a first relocation field (DL2) 810; and a second relocation field (DH2) 812. The contents of the general purpose registers designated by the X2 and B2 fields are added to the contents of a concatenation of the DH2 and DL2 fields to form a second operand address (i.e., an address of the memory location containing the second operand). If either or both of the X2 and B2 fields are zero, the corresponding register is not included in the addition.

[0244] During operation, when the CTEND instruction is executed, the following occurs: If the CPU is in unconstrained transaction execution mode and the transaction nesting depth at the beginning of the instruction is one, the second operand, consisting of a double word, is examined. The second operand is treated as a signed 64-bit binary integer, and subsequent execution depends on the contents of the operand as follows: ∗ If the second operand is negative, the transaction execution is aborted with abort code 17 (CTEND abort), and the condition code in the transaction abort PSW is set to 3. * If the second operand is zero, the transaction is terminated. All memory accesses performed by the transaction are committed, the transaction nesting depth is set to zero, the CPU exits transaction execution mode, and the instruction is executed by setting the condition code to 0. ∗ If the second operand is positive, instruction execution is delayed until (a) the operand becomes negative or zero, in which case instruction execution proceeds as described above, or (b) a model-dependent interval that shall not be exceeded, such as one millisecond, has been exceeded.

[0245] If the model-dependent interval is exceeded, the transaction execution is aborted with abort code 18, and the condition code in the transaction abort PSW is set to 2. If an interrupt becomes pending, the instruction is canceled, and the interrupt is processed.

[0246] For memory access ordering and block synchronization purposes, the second operand is not fetched if it is positive. However, CTEND appears to execute as a single-operand fetch if the operand is negative or zero. Furthermore, access exceptions are detected for the operand regardless of its sign.

[0247] CONDITIONAL TRANSACTION END is a restricted command under the following conditions: * The instruction is executed in restricted transaction mode. In this case, a restricted transaction exception condition may be detected. * The instruction is being executed in unrestricted transaction execution mode, and the transaction nesting depth at the beginning of the instruction is greater than one. In this case, transaction execution is aborted due to a restricted instruction abort condition (abort code 11).

[0248] If the CPU is not in transaction execution mode at the beginning of the instruction, the following applies: ∗ It is model dependent whether an access exception or a PER event zero address detection is detected for the memory location of the second operand. ∗ If no access exception is detected for the memory location of the second operand, the instruction is executed by setting the condition code to 2.

[0249] A serialization function takes place when the operation is executed.

[0250] The M1 field is ignored, but should contain zero; otherwise, the program cannot be operated in a compatible manner in the future. Special conditions

[0251] An execution exception is detected and the operation is suppressed if the command is the target of a Run command.

[0252] A special operation exception is detected and the operation is suppressed if the transaction execution control bit 8 of control register 0 is zero.

[0253] A specification exception is detected, and the operation is suppressed, if the second operand is not on a double-word boundary. Whether this condition is detected is model-dependent if the CPU is not in transactional execution mode at the beginning of the instruction. Resulting condition code: 0 transactions completed 1 Not applicable 2 CPU is not in transaction execution mode 3 Not applicable Program exceptions: ∗ Access (fetch, second operand) ∗ Execute ∗ Operation (if the facility for terminating conditional transactions is not installed) ∗ Special Operation ∗ Specification ∗ Transaction restriction

[0254] The priority of execution for the command is as follows in an example: 1. - 7.D Exceptions with the same priority as the priority of program interrupt conditions for the general case. 7.E Abort code 11 (restricted instruction) if the transaction nesting depth is greater than 1. 8.A Specification exception (second operand does not lie on a double word boundary)*. 8.B Access exception (memory location of the second operand)*. 9 Condition code 2 (transaction nesting depth is zero). 10 Abort code 17 (transaction nesting depth is one, second operand is negative). 11 Condition code 0 (transaction nesting depth is one, second operand is zero). 12 Abort code 18 (transaction nesting depth is one, second operand remains positive for a model-dependent time limit).

[0255] * It is model-dependent whether this condition is detected when the transaction nesting depth is zero (that is, when the CPU is not in transaction execution mode). Programming notes: 1. Although the instruction does not directly set the condition code to 3, when a transaction execution is aborted, the condition code in the transaction abort PSW is set to 3 by the subsequent transaction abort processing. 2. From the perspective of the CPU executing CTEND, there is no guaranteed order of changes made to the second operand memory location by other CPUs. For example, assuming (a) the CPU is in transactional execution mode, (b) a double-word (DW) memory location initially contains a positive value, and (c) CTEND is executed, DW is referred to as its second operand memory location. If one or more other CPUs store negative, zero, and positive values ​​in the double-word, it cannot be predicted whether CTEND will abort, execute with condition code zero, or continue to delay. 3. Depending on the model, if the CTEND memory operand is in the same cache line as other data accessed in the transaction, the CPU may abort the transaction if another CPU attempts to modify the CTEND memory operand.

[0256] Further details regarding executing a CONDITIONAL TRANSACTION END command are provided with reference to the Fig. 9 to 10. In Fig.9, a processor initially receives (e.g., fetches, receives, is provided, or otherwise acquired) a CONDITIONAL TRANSACTION END instruction, STEP 900. The processor then executes the instruction, STEP 902. As described herein, during execution, the second operand is fetched from a memory location specified by the instruction and examined. Subsequent execution of the instruction depends on the contents of that operand. For example, if the second operand is a negative value, the transaction is aborted, and a condition code is set, e.g., to three, in the transaction abort PSW. Further, if the second operand is zero, the instruction terminates, memory accesses are committed, the transaction nesting depth is set to zero, the condition code is set to zero, and the processor exits transaction mode.Furthermore, if the second operand has a positive value, execution of the instruction is delayed until, for example, a predefined event occurs.

[0257] Further aspects related to executing the CONDITIONAL TRANSACTION END command are described with reference to Fig.10. In one example, when a CONDITIONAL TRANSACTION END instruction is executed, a determination is made as to whether the transaction execution facility can be used, REQUEST 1000. For example, if bit 8 of control register (CR) 0 is set to zero, the facility is not available, and an exception (e.g., a special operation exception) is provided, STEP 1002. However, if bit 8 of control register 0 is non-zero, the transaction execution facility can be used, and a further determination is made as to whether the processor (e.g., the CPU) executing the instruction is in transaction execution mode, REQUEST 1004. If the processor is not in transaction execution mode, as indicated by the transaction nesting depth (TND), which is zero, a condition code, for example, is set to 2, and the instruction ends, STEP 1006.However, if the transaction nesting depth is greater than zero, indicating that the processor is in transactional execution mode, a determination is made as to whether the processor executing the instruction is in unconstrained transactional execution mode, REQUEST 1008. If not, one example provides an exception such as a transaction constraint interrupt, STEP 1010.

[0258] If the processor is in unrestricted transaction mode, a determination is made as to whether the transaction nesting depth at the beginning of the instruction is one, REQUEST 1012. If the transaction nesting depth is greater than one, an exception is provided, indicating, for one example, a restricted instruction: abort code 11, STEP 1014. However, if the CPU is in unrestricted transaction mode and the transaction nesting depth at the beginning of the instruction is one, the second operand is fetched, STEP 1016. For one example, the second operand is treated as a signed 64-bit binary integer, and subsequent execution of the CONDITIONAL TRANSACTION END instruction depends on the contents of the second operand.For example, if the value of the second operand is a negative value, REQUEST 1018, the transaction execution is aborted with an abort code of 17, for example, and a condition code in the transaction abort program status word (PCW) is set to 3, for example, STEP 1020. In this case, transaction memory data is discarded.

[0259] However, if the value of the second operand is zero, REQUEST 1018, the transaction is terminated, all memory accesses performed by the transaction are committed, the transaction nesting depth is set to zero, the processor exits transaction execution mode, and the instruction is executed with the condition code set to zero, for example, STEP 1022.

[0260] If the value of the second operand in REQUEST 1018 is a positive value, instruction execution is delayed until a predefined event occurs, e.g., the operand becomes negative or zero, in which case instruction execution occurs as described above, or a model-dependent interval has been exceeded. During the delay, an interrupt may become pending in one example. Thus, in one example, processing continues by determining whether an interrupt is pending for the processor, REQUEST 1024. If an interrupt is pending, the transaction is aborted and the interrupt is processed, STEP 1026. However, if no interrupt is pending, it is determined whether a model-dependent interval (which should not exceed one millisecond, for example) is exceeded, REQUEST 1028.If the model-dependent interval has been exceeded, a transaction execution is aborted with an abort code of, for example, 18 (CTEND timeout), and the condition code in the transaction abort PSW is set to, for example, 2 (transaction can be retried), STEP 1030. In another embodiment, the abort code is set to, for example, 255 (Other), and the condition code in the transaction abort PSW is set to, for example, 3 (do not retry). Other abort codes and condition codes are possible.

[0261] If there is no model-dependent timeout, processing continues by re-fetching the second operand, STEP 1016, and checking the second operand, REQUEST 1018. As can be seen, the delay continues until, for example, the second operand becomes a negative value, the second operand becomes zero, an interrupt becomes pending, or a model-dependent timeout occurs. This terminates processing of the CTEND instruction.

[0262] For memory access ordering and block synchronization reasons, the second operand is not fetched if it is positive. However, access exceptions for the operand are detected regardless of its sign.

[0263] While the model-dependent interval in the examples above is a time interval, in other examples it may not be a time interval, but rather, for example, the number of commands or another type of interval. Furthermore, while the query asks whether the interval has been exceeded, other implementations may use other operations such as equal to, less than, etc. Many variations are possible.

[0264] A CONDITIONAL TRANSACTION END instruction was described in detail above, which allows a program executing in unconstrained transaction execution mode to examine a memory location being modified by another CPU or the I / O subsystem. Based on the examined data, transaction execution can be terminated, aborted, or the terminate / abort decision can be temporarily delayed. Conditional transaction termination, of which the CONDITIONAL TRANSACTION END instruction is a part, provides a mechanism by which transaction execution on a CPU can be affected by memory operations performed by another CPU or the I / O subsystem without causing the transaction to abort due to a memory conflict.

[0265] In one aspect, an instruction (e.g., the CTEND instruction) is provided that, upon continued execution, checks a memory operand designated by the instruction (e.g., the second operand) for a signed value. Based on the signed value containing a first value (e.g., a negative value), the transaction is aborted, and transaction memory data is discarded. Further, based on the signed value having a second value (e.g., zero), the transaction is terminated, and transaction memory data is stored in memory. Further, based on the signed value containing a third value (e.g.,a positive value), delays the cancellation or termination of the transaction until a predefined action occurs, for example, the signed value becomes the first value or the second value, or a predefined relationship to a model-dependent interval occurs (e.g., the interval is exceeded). Other predefined actions are also possible.

[0266] In one embodiment, the CTEND instruction conditionally terminates a transaction based on an examination of a memory location shared by processors and the I / O subsystem, where the other processors may be operating in a transactional fashion. Typically, stores to a memory location examined by a CPU in transactional execution mode would cause the transaction to abort; however, the CTEND instruction differs in that it does not cause an abort detected due to a conflict.

[0267] In another embodiment, if the second operand fetched by the instruction is a positive value, it can be used to provide an indication of the duration of the expected delay. For example, CPU 1 could execute CTEND, waiting for CPU 2 to complete its serialized processing. CPU 2 could repeatedly store to the memory location of CPU 1's second operand of CTEND, indicating its expected delay (e.g., will do in 5 milliseconds, 4, 3, 2, 1...). If CPU 1 notices that CPU 2 will not finish on time, it could immediately exit CTEND without waiting. Other examples and / or variations are possible.

[0268] In one or more aspects, a means for terminating conditional instructions is provided, which may be used in transaction processing. This means includes, for example, a single instruction that may be delayed in execution until an operand of the instruction reaches a certain value. In one example, the operand is explicitly defined by the instruction, and in another embodiment, it is implicitly defined. One embodiment of the logic circuitry associated with a means for terminating conditional instructions is described with reference to the Fig. 11A to 11C.

[0269] When initially referring to Fig.11A, a processor obtains (e.g., receives, is provided, or otherwise obtains) a machine instruction, STEP 1100, that includes an operation code to specify an operation to complete conditional instructions (1102) and one or more fields that provide an operand (1104). In one embodiment, the one or more fields provide a storage location of the operand in memory. The one or more fields may include, for example, an index field, a base field, a first displacement field, and a second displacement field, and the contents of registers designated by one or more of the index field and the base field are added to a concatenation of the second displacement field and the first displacement field to provide the storage location of the operand.

[0270] The processor executes the machine instruction, STEP 1110. In one embodiment, executing includes obtaining the operand (e.g., retrieving the operand from the memory location), STEP 1120. Determining whether the operand has a predetermined relationship to a value, INQUIRY 1122. In one embodiment, the predetermined relationship is equality and the value is zero. However, other relationships and / or values ​​may be used. Based on the operand having the predetermined relationship to the value (e.g., operand = 0), the processor executes the instruction, STEP 1124.

[0271] However, due to the fact that the operand does not have the specified relationship to the value (QUERY 1122), instruction execution is delayed (STEP 1126). Therefore, the operand is reacquired (STEP 1120), and processing continues by checking the value. That is, in this embodiment, the instruction loops until the operand is set to the value.

[0272] A further embodiment is described with reference to Fig.11C. In this embodiment, the processor obtains the operand (e.g., fetches the operand from memory), STEP 1150, and determines whether the operand has a predetermined relationship (e.g., equality) to a value (e.g., zero), QUERY 1152. If the operand has the predetermined relationship to the value, execution occurs, STEP 1154. In one example, a condition code is set to zero. In another embodiment, the instruction is part of or associated with a transaction, where completion of the instruction also ends the transaction. Upon ending the transaction, in a particular embodiment, memory accesses made by the transaction are committed, a nesting depth of the transaction is set to zero, the processor exits transaction execution mode, and a condition code is set to zero.

[0273] If, at query 1152, the operand does not have the predetermined relationship to the value, in one embodiment, it is further determined whether the operand has a different relationship to the value, QUERY 1156. For example, it is determined whether the operand is greater than zero. If the operand is greater than zero, execution of the instruction is delayed, STEP 1158, and processing further refetches the operand, STEP 1150. In a particular embodiment where the instruction is part of or associated with a transaction, delaying execution of the instruction also delays execution of the transaction.

[0274] For example, at query 1156, if the operand is less than zero (i.e., it has no predetermined relationship or other relationship to the value), the instruction is prematurely terminated, STEP 1160. In one embodiment where the instruction is part of or associated with a transaction, the transaction is aborted, and in one example, a condition code in a transaction abort program status word (PSW) is set to a defined value.

[0275] While various embodiments have been described above, one or more aspects may relate to other embodiments that may include transaction processing. For example, a locking instruction or locking device may include one or more of the aspects described herein. Many other possibilities exist.

[0276] As used herein, the terms storage device, central memory, main memory, random access memory and main working memory are interchangeable unless otherwise indicated by their use.

[0277] In Fig. 12, in one example, a computer program product 1200 includes, for example, one or more non-transitory computer-readable storage media 1202 for storing thereon computer-readable program code means, logic circuits, and / or instructions 1204 to provide and enable one or more embodiments.

[0278] The present invention may be a system, a method, and / or a computer program product. The computer program product may include one or more computer-readable storage media having computer-readable program instructions embodied thereon for causing a processor to perform aspects of the present invention.

[0279] The computer-readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. The computer-readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.A non-exhaustive list of more specific examples of the computer-readable storage medium includes the following: a portable computer diskette, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, a mechanically encoded device such as punched cards or raised structures in a groove in which instructions are recorded, or any suitable combination of the foregoing.A computer-readable storage medium used here should not be interpreted as containing per se transient signals such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses traveling through a fiber optic cable), or electrical signals transmitted through a wire.

[0280] Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to respective computing / processing units or across a network, e.g., the Internet, a local area network, a wide area network, and / or a wireless network to an external computer or external storage unit. The network may include copper transmission cables, fiber optic cables, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing unit receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing / processing unit.

[0281] Computer-readable program instructions for performing operations of the present invention may be assembly language instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state-setting data, or source or object code written in any combination of one or more programming languages, including an object-oriented programming language such as Smalltalk, C++, or the like, and conventional procedural programming languages ​​such as the "C" programming language or similar programming languages. The computer-readable program instructions may be executed only on a user's computer, partially on a user's computer, as a standalone software package, partially on a user's computer and partially on a remote computer, or only on the remote computer or server.In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (e.g., over the Internet using an Internet service provider). In some embodiments, electronic circuitry, including, for example, programmable logic circuitry, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), may execute the computer-readable program instructions by utilizing state information of the computer-readable program instructions to personalize the electronic circuitry to carry out aspects of the present invention.

[0282] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be appreciated that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, may be implemented by computer-readable program instructions.

[0283] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to form a machine such that instructions executing via the processor of the computer or other programmable data processing device generate means for implementing the functions / effects specified in the flowchart and / or block diagram block or blocks.These computer-readable program instructions may also be stored in a computer-readable storage medium that can instruct a computer, other programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer-readable storage medium having instructions stored therein comprises an article of manufacture that includes instructions that implement aspects of the function / effect specified in the flowchart and / or block diagram block or blocks.

[0284] The computer-readable program instructions may also be loaded into a computer, other programmable data processing apparatus, or other device to cause a series of functional steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process such that the instructions executing on the computer, other programmable device, or other device implement the functions / effects specified in the block or blocks of the flowchart and / or block diagram.

[0285] The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or section of instructions comprising one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions specified in the block may not occur in the order indicated in the figures. For example, two blocks shown sequentially may actually execute substantially concurrently, or the blocks may occasionally execute in the reverse order depending on the functionality involved.It is also noted that each block in the block diagram and / or flowchart illustrations, and combinations of blocks in the block diagram and / or flowchart illustrations, may be implemented by systems based on special purpose hardware that perform the specified functions or effects, or combinations of special purpose hardware and computer instructions.

[0286] In addition to the above, one or more aspects may be provided, offered, deployed, managed, operated, etc., by a service provider that provides management of customer environments. For example, the service provider may create, maintain, support, etc., computer code and / or computer infrastructure that performs one or more aspects for one or more customers. In return, the service provider may receive payments from the customer, e.g., pursuant to a subscription and / or fee agreement. Additionally or alternatively, the service provider may receive payments from the sale of advertising content to one or more third parties.

[0287] In one aspect, an application may be deployed to perform one or more embodiments. For example, deploying an application includes providing a computing infrastructure operable to perform one or more embodiments.

[0288] As a further aspect, a computing infrastructure may be employed comprising integrating computer-readable code into a computing system, in which the code in combination with the computing system is capable of performing one or more embodiments.

[0289] As yet another aspect, a process for integrating a computing infrastructure comprising integrating computer-readable code into a computing system may be provided. The computing system comprises a computer-readable medium, the computing medium comprising one or more embodiments. The code, in combination with the computing system, is capable of executing one or more embodiments.

[0290] While numerous embodiments have been described above, these are merely examples. For example, computing environments of other architectures that include and utilize one or more embodiments may be used. Further, other instructions, instruction formats, instruction fields, and / or instruction values ​​may be used. Further, while examples of values ​​for abort codes and condition codes have been provided, other values ​​may be used. Furthermore, different, different, and / or additional restrictions / limitations may be provided / used. Further, other intervals may be provided and / or used in different ways. Many variations are possible.

[0291] Furthermore, other types of data processing environments may be useful and used. For example, a data processing system suitable for storing and / or executing program code may be used, including at least two processors connected directly or indirectly via a system bus to storage elements. Storage elements include, for example, local memory used during actual execution of the program code, mass storage, and cache memory that temporarily stores at least a specific piece of program code to reduce the frequency with which code must be retrieved from mass storage during execution.

[0292] Input / output or I / O devices (including, but not limited to, keyboards, displays, pointing devices, DASD, tape, CDs, DVDs, USB drives, and other storage devices, etc.) may be connected to the system either directly or through intervening I / O controllers. Network adapters may also be connected to the system to allow the computing system to connect to other computing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modems, and Ethernet cards are just a few of the available types of network adapters.

[0293] In Fig.13, representative components of a host computer system 5000 for implementing one or more embodiments are illustrated. The representative host computer 5000 includes one or more CPUs 5001 that can communicate with computer memory (i.e., a central memory) 5002, as well as I / O interfaces to storage media devices 5011 and networks 5010 for communicating with other computers or SANs and the like. The CPU 5001 conforms to an architecture having a designed instruction set and functionality. The CPU 5001 may include access register translation (ART) 5012, which includes an ART lookup buffer (ALB) 5013, for selecting an address space to be used by dynamic address translation (DAT) 5003 to convert program addresses (virtual addresses) into real memory addresses.A DAT typically includes a translation lookaside buffer (TLB) 5007 to cache translations so that subsequent accesses to the block of computer memory 5002 do not require the delay of address translation. A cache 5009 is typically used between computer memory 5002 and processor 5001. Cache 5009 may be hierarchical, with a large cache available to more than one CPU and smaller, faster (lower-level) caches between the large cache and each CPU. In some implementations, the lower-level caches are subdivided to provide separate lower-level caches for instruction fetch and data access.In one embodiment, for the TX device, a transaction diagnostic block (TDB) 5100 and one or more buffers 5101 may be stored in one or more caches 5009 and memory 5002. In one example, in TX mode, data is initially stored in a TX buffer, and when TX mode ends (e.g., outermost instruction TEND), the data in the buffer is stored (committed) in memory, or if an abort occurs, the data in the buffer is discarded.

[0294] In one embodiment, an instruction is fetched from memory 5002 by an instruction fetch unit 5004 via a cache 5009. The instruction is decoded in an instruction decode unit 5006 and dispatched (in some embodiments with other instructions) to the instruction execution unit or units 5008. Typically, multiple execution units 5008 are used, e.g., an arithmetic execution unit, a floating-point execution unit, and a branch instruction execution unit. Furthermore, in one embodiment of the TX facility, various TX control elements 5110 may be used. The instruction is executed by the execution unit by accessing operands of specified instruction registers or memory as needed.When an operand is to be accessed (loaded or stored) from memory 5002, a load / store unit 5005 typically handles the access under the control of the instruction being executed. Instructions can be executed in hardware circuitry or internal microcode (firmware), or by a combination of both.

[0295] According to one aspect of the TX facility, the processor 5001 also includes a PSW 5102 (e.g., TX and / or abort PSW), a nesting depth 5104, a TDBA 5106, and one or more control registers 5108.

[0296] As noted, a computer system contains data in local (or main) memory, as well as addressing, protection, reference, and change recording. Some aspects of addressing include the format of addresses, the concept of address spaces, the different types of addresses, and how one address type is translated into another. A portion of main memory contains permanently assigned memory locations. Main memory provides the system with directly addressable, fast-access data storage. Both data and programs must be loaded into main memory (by input devices) before they can be processed.

[0297] Main memory may contain one or more smaller, fast-access buffers, sometimes referred to as caches. A cache is typically physically associated with a CPU or I / O processor. The effects of the physical structure and use of different storage media are generally not observable by the program, except for performance.

[0298] Separate caches may be maintained for instructions and data operands. Data in a cache is held in consecutive bytes along an integral boundary called a cache block or cache line (or line for short). A model may provide an EXTRACT CACHE ATTRIBUTE instruction that returns the size of a cache line in bytes. A model may also provide PREFECH DATA and PREFECH DATA RELATIVE LONG instructions that preempt a store to the data or instruction cache, or free data from the cache.

[0299] Memory is viewed as a long horizontal string of bits. For most operations, memory accesses occur in a left-to-right sequence. The string of bits is divided into units of eight bits. An eight-bit unit is called a byte, which is the basic building block of all information formats. Each byte location in memory is identified by a unique non-negative integer, which is the address of that byte location, or simply the byte address. Adjacent byte locations have consecutive addresses, starting with 0 on the left and proceeding in a left-to-right sequence. Addresses are unsigned binary integers represented by 24, 31, or 64 bits.

[0300] Data is transferred between memory and a CPU or channel subsystem as one byte or a group of bytes at a time. Unless otherwise specified, in z / Architecture, for example, a group of bytes in memory is addressed by the leftmost byte of the group. The number of bytes in the group is specified either implicitly or explicitly by the operation to be performed. When used in a CPU operation, a group of bytes is called an array. Within each group of bytes, in z / Architecture, for example, the bits are numbered in order from left to right. In z / Architecture, the leftmost bits are sometimes referred to as the "high order" bits and the rightmost bits as the "low order" bits. However, the bit numbers do not represent memory addresses; only bytes can be addressed.To affect individual bits of a byte in memory, the entire byte is addressed. The bits in a byte are numbered 0 to 7 from left to right (for example, in the z / Architecture). The bits in an address can be numbered 8 to 31 or 40 to 63 for 24-bit addresses, or 1 to 31 or 33 to 63 for 31-bit addresses; they are numbered 0 to 63 for 64-bit addresses. In one example, bits 8 to 31 and 1 to 31 apply to addresses located in a memory location (e.g., register) that is 32 bits wide, whereas bits 40 to 63 and 33 to 63 apply to addresses located in a memory location that is 64 bits wide. For any other fixed-length format consisting of multiple bits, the bits that make up the format are numbered consecutively starting at 0.For the purposes of error detection, and preferably for correction, one or more check bits may be transmitted with each byte or with a group of bytes. Such check bits are automatically generated by the machine and cannot be directly controlled by the program. Storage capacities are expressed in a number of bytes. When the length of a memory operand field is implicitly specified by an instruction's operation code, the field is said to be a fixed-length field, which can be one, two, four, eight, or sixteen bytes. Larger fields may be specified implicitly for some instructions. When the length of a memory operand field is not specified implicitly but explicitly, the field is called a variable-length field. Variable-length operands can vary in length in increments of one byte (or, for some instructions, in multiples of two bytes, or in other multiples).When data is placed in memory, the contents are replaced only at those memory locations contained in the designated field, even if the width of the physical path to memory may be greater than the length of the field being stored.

[0301] Certain units of information must be located on an integral boundary in memory. A boundary is said to be integral for a unit of information if its memory address is a multiple of the unit's length in bytes. Special designations are given to fields of 2, 4, 8, 16, and 32 bytes on an integral boundary. A halfword is a group of two consecutive bytes on a two-byte boundary and is the basic building block of instructions. A word is a group of four consecutive bytes on a four-byte boundary. A doubleword is a group of eight consecutive bytes on an eight-byte boundary. A quadword is a group of 16 consecutive bytes on a 16-byte boundary. An octoword is a group of 32 consecutive bytes on a 32-byte boundary.When memory addresses refer to halfwords, words, doublewords, quadwords, and octowords, the binary representation of the address contains one, two, three, four, and five rightmost zero bits, respectively. Instructions should be located on integral two-byte boundaries. The memory operands of most instructions have no boundary alignment requirements.

[0302] In units that implement separate caches for instructions and data operands, a significant delay may be observed when the program stores into a cache line from which instructions are subsequently fetched, regardless of whether the instructions subsequently fetched are modified during the store operation.

[0303] In one example, the embodiment may be implemented by software (sometimes referred to as licensed internal code, firmware, microcode, millicode, picocode, and the like, each of which would be consistent with one or more embodiments). In Fig.13, software program code embodying one or more aspects is accessed by a processor 5001 of the host system 5000 from long-term storage media devices 5011, such as a CD-ROM drive, a tape drive, or a hard disk drive. The software program code may be embodied on any of a variety of known media for use with a data processing system, such as a floppy disk, a hard disk drive, or a CD-ROM. The code may be distributed on such media or may be distributed to users from computer memory 5002 or from the memory of one computer system over a network 5010 to other computer systems for use by users of such other systems.

[0304] The software program code includes an operating system that controls the function and interaction of the various computer components and one or more application programs. The program code is typically paged from the storage media device 5011 to the relatively fast computer memory 5002, from which it is available for processing by the processor 5001. The techniques and methods for implementing software program code in memory, on physical media, and / or distributing software code over networks are well known and will not be discussed further here. Program code, when generated and stored on a tangible medium (including, but not limited to, electronic memory modules (RAM), flash memory, compact disks (CDs), DVDs, magnetic tape, and the like), is often referred to as a "computer program product."The data carrier of the computer program product can usually be read by a processing circuit, preferably in a computer system for execution by the processing circuit.

[0305] Fig. Figure 14 illustrates a representative workstation or server hardware system in which one or more embodiments may be implemented. The system 5020 of Fig.14 shows a representative basic computer system 5021, such as a personal computer, a workstation, or a server with optional peripheral devices. The basic computer system 5021 includes one or more processors 5026 and a bus used to connect the processor(s) 5026 to the other components of the system 5021 according to known techniques and to enable data exchange between them. The bus connects the processor 5026 to the main memory 5025 and a long-term storage 5027, which may include a hard disk drive (including, for example, one of magnetic media, CD, DVD, and flash memory) or, for example, a tape drive. The system 5021 may also include a user interface adapter that connects the microprocessor 5026 via the bus to one or more interface devices, such asa keyboard 5024, a mouse 5023, a printer / scanner 5030, and / or other interface devices, which may be any user interface device such as a touchscreen, a digitized input pad, etc. The bus also connects a display device 5022, such as an LCD screen or a monitor, to the microprocessor 5026 via a display adapter.

[0306] System 5021 may communicate with other computers or networks of computers using a network adapter capable of communicating 5028 with a network 5029. Exemplary network adapters include data links, token ring, Ethernet, or modems. Alternatively, system 5021 may communicate using a wireless interface, such as a CDPD (cellular digital packet data) card. System 5021 may be associated with such other computers in a local area network (LAN) or a wide area network (WAN), or system 5021 may be a client in a client / server arrangement with another computer, etc. All of these configurations, as well as suitable hardware and software for communicating, are known in the art.

[0307] Fig.15 illustrates a data processing network 5040 in which one or more embodiments may be implemented. The data processing network 5040 may include a plurality of individual networks, such as a wireless network and a wired network, each of which may include a plurality of individual workstations 5041, 5042, 5043, 5044. One of ordinary skill in the art will also recognize that one or more LANs may be included, where a LAN may include a plurality of intelligent workstations connected to a host processor.

[0308] Continue in Fig.15, the networks may also include mainframe computers or servers such as a gateway computer (client server 5046) or application server (a remote server 5048 capable of accessing a data repository and directly accessible from a workstation 5045). A gateway computer 5046 serves as the entry point into each network. A gateway is required when connecting one network protocol to another. The gateway 5046 may preferably be connected to another network (e.g., the Internet 5057) by means of a data link. The gateway 5046 may also be connected to one or more workstations 5041, 5042, 5043, 5044 using a data link. The gateway computer may be implemented using an IBM eServer System z server available from International Business Machines Corporation.

[0309] With simultaneous reference to Fig. 14 and Fig. 15, the software programming code 5031, which may embody one or more aspects, may be accessed by the processor 5026 of the system 5020 from persistent storage media 5027, such as a CD-ROM drive or a hard disk drive. The software program code may be embodied on any of a variety of known media for use with a data processing system, such as a floppy disk, a hard disk drive, or a CD-ROM. The code may be distributed on such media or may be distributed to users 5050, 5051 from the memory or storage of one computer system over a network to other computer systems for use by users of those other systems.

[0310] Alternatively, the program code may be embodied in memory 5025 and accessed by processor 5026 using the processor bus. Such program code includes an operating system that controls the function and interaction of the various computer components and one or more application programs 5032. Program code is typically swapped from storage media 5027 to high-speed memory 5025, where it is available for processing by processor 5026. The techniques and methods for implementing software program code in memory, on physical media, and / or distributing software code over networks are well known and will not be further discussed here.Program code, when generated and stored on a tangible medium (including, but not limited to, electronic memory modules (RAM), flash memory, compact disks (CDs), DVDs, magnetic tape, and the like), is often referred to as a "computer program product." The computer program product's storage medium is typically readable by processing circuitry, preferably in a computer system, for execution by the processing circuitry.

[0311] The cache memory readily available to the processor (usually faster and smaller than other caches on the processor) is the lowest-level (L1 or Level 1) cache, and the main memory (main working memory) is the highest-level cache memory (L3 if there are three levels). The lowest-level cache memory is often divided into an instruction cache (I-cache), which holds machine instructions to be executed, and a data cache (D-cache), which holds data operands.

[0312] In Fig.Figure 16 illustrates an exemplary processor embodiment for processor 5026. Typically, one or more levels of cache 5053 are used to buffer memory blocks to improve processor performance. Cache 5053 is a fast buffer that holds cache lines of memory data expected to be used. Typical cache lines contain 64, 128, or 256 bytes of memory data. Separate caches are often used to caching instructions rather than data. Cache coherence (synchronization of copies of the lines in memory and caches) is often provided by numerous "snoop" algorithms known in the art. A processor system's main memory 5025 is often referred to as a cache.In a processor system with four levels of cache memory 5053, main memory 5025 is sometimes referred to as Level 5 (L5) cache memory because it is typically faster and holds a portion of the non-volatile memory (DASD, tape, etc.) available to a computer system. Main memory 5025 performs caching of data pages that are paged in and out of main memory 5025 by the operating system.

[0313] A 5061 program counter (instruction counter) tracks the address of the instruction currently being executed. The counting range of a program counter in a z / Architecture processor is 64 bits and can be truncated to 31 or 24 bits to support prior address constraints. A program counter is typically implemented in a computer's PSW (Program Status Word) so that it persists during a context switch. Thus, a currently executing program that has a program counter value can be interrupted, for example, by the operating system (context switch from the program environment to the operating system environment). The program's PSW maintains the program counter value while the program is idle, and the operating system's program counter (in the PSW) is used while the operating system is executing. Typically, the program counter is incremented by an amount equal to the number of bytes of the current instruction.RISC (Reduced Instruction Set Computing) instructions are typically fixed length, while CISC (Complex Instruction Set Computing) instructions are typically variable length. IBM z / Architecture instructions are CISC instructions and are 2, 4, or 6 bytes long. The program counter 5061 is modified, for example, by a context switch operation or a branch executed operation of a branch instruction. During a context switch operation, the current program counter value is stored in the program status word along with other status information about the currently executing program (such as condition codes), and a new program counter value is loaded that points to an instruction of a new program module to be executed.A branch taken instruction is performed to allow the program to make decisions or loop within the program by loading the result of the branch instruction into the program counter 5061.

[0314] Typically, an instruction fetch unit 5055 is used to fetch instructions on behalf of processor 5026. The fetch unit fetches either "next sequential instructions," target instructions from instructions taken from a branch, or the first instructions of a program following a context switch. Modern instruction fetch units often use prefetching techniques to speculatively prefetch instructions based on the likelihood that the prefetched instructions could be used. For example, a fetch unit may fetch 16 instruction bytes containing the next sequential instruction and additional bytes from further sequential instructions.

[0315] The fetched instructions are then executed by processor 5026. In one embodiment, the fetched instruction(s) are passed to a dispatch unit 5056 of the fetch unit. The dispatch unit decodes the instruction(s) and forwards information about the decoded instruction(s) to appropriate units 5057, 5058, 5060. An execution unit 5057 typically receives information about decoded arithmetic instructions from instruction fetch unit 5055 and performs arithmetic operations on operands according to the instruction's opcode. Operands are preferably provided to execution unit 5057 from memory 5025, designed registers 5059, or from an immediate field of the instruction currently being executed.When results of execution are stored, they are stored in memory 5025, registers 5059, or other machine hardware (such as control registers, PSW registers, and the like).

[0316] Virtual addresses are converted to real addresses using a dynamic address translation 5062 and optionally using an access register translation 5063.

[0317] A processor 5026 typically contains one or more units 5057, 5058, 5060 for executing the functions of the instruction. Fig.17A, an execution unit 5057 may communicate with designed general purpose registers 5059, a decode / dispatch unit 5056, a load / store unit 5060, and other processor units 5065 via interface logic 5071. An execution unit 5057 may use multiple register circuits 5067, 5068, 5069 to hold information, which the arithmetic logic unit (ALU) 5066 operates on. The ALU performs arithmetic operations such as add, subtract, multiply, and divide, as well as logical functions such as AND, OR, and EXCLUSIVE-OR (XOR), rotate, and shift. The ALU preferably supports specialized operations depending on the particular architecture. Other circuits may provide other designed features 5072, including, for example, condition codes and recovery support logic circuitry.Typically, the result of an ALU operation is held in an output register circuit 5070, which can forward the result to a variety of other processing functions. There are many arrangements of processor units, and the present description is merely intended to provide a representative understanding of one embodiment.

[0318] For example, an ADD instruction would be executed in an execution unit 5057, which has arithmetic and logic functionality, while a floating-point instruction would be executed in a floating-point execution unit, which has specialized floating-point capabilities. An execution unit preferably acts on operands identified by an instruction by performing a function defined by the operation code on the operands. For example, an ADD instruction may be executed by an execution unit 5057 on operands located in two registers 5059, which are identified by register fields of the instruction.

[0319] The execution unit 5057 performs arithmetic addition on two operands and stores the result in a third operand, which can be a third register or one of the two source registers. The execution unit preferably uses an arithmetic logic unit (ALU) 5066, which is capable of performing a variety of logical functions such as shift, rotate, AND, OR, and XOR, as well as a variety of algebraic functions, including add, subtract, multiply, and divide. Some ALUs 5066 are designed for scalar operations and some for floating-point operations. Depending on the architecture, data can be big-endian (where the least significant byte has the highest byte address) or little-endian (where the least significant byte has the lowest byte address). The IBM z / Architecture is big-endian.Signed fields can contain sign and magnitude, 1's complement, or 2's complement, depending on the architecture. A 2's complement number is advantageous in that no subtraction capability needs to be developed in the ALU, since a negative value or a positive value in 2's complement simply requires addition in the ALU. Numbers are usually described in abbreviated form, with a 12-bit field defining the address of a 4,096-byte block and is usually described, for example, as a 4-KB (kilobyte) block.

[0320] In Fig.17B, ​​branch instruction information for executing a branch instruction is typically sent to a branch unit 5058, which often uses a branch prediction algorithm, such as a branch history table 5082, to predict the result of the branch before executing other conditional operations. The target of the current branch instruction is retrieved and speculatively executed before executing the conditional operations. When the conditional operations are completed, the speculatively executed branch instructions are either executed or discarded based on the conditions of the conditional operation and the speculated result.A typical branch instruction may check condition codes and branch to a destination address if the condition codes satisfy the branch requirement of the branch instruction. A destination address may be calculated based on multiple numbers, including a number present, for example, in register fields or an immediate field of the instruction. Branch unit 5058 may use an ALU 5074, which includes a plurality of input register circuits 5075, 5076, 5077 and an output register circuit 5080. Branch unit 5058 may exchange data 5081 with general purpose registers 5059, a distribution unit 5056, or other circuits 5073, for example, for decoding.

[0321] The execution of a group of instructions may be interrupted for a variety of reasons, including a context switch triggered by an operating system, a program exception or error causing a context switch, an I / O interrupt signal causing a context switch, or, for example, multi-threaded activity by a plurality of programs (in a multi-threaded environment). Preferably, a context switch action stores state information about a currently executing program and then loads state information about another program that is being called. State information may be stored, for example, in hardware registers or in memory. State information preferably includes a program counter value pointing to a next instruction to be executed, condition codes, memory translation information, and the contents of designed registers.A context-switching activity can be performed by hardware circuitry, application programs, operating system programs, or firmware code (microcode, picocode, or licensed internal code (LIC)) alone or in combination.

[0322] A processor accesses operands according to methods defined in the instruction. The instruction may provide an immediate operand using the value of an instruction section, may provide one or more register fields that explicitly point to general-purpose registers or special-purpose registers (e.g., floating-point registers). The instruction may use implicit registers identified as operands by an operation code field. The instruction may use memory locations as operands. An operand's memory location may be provided by a register, an immediate field, or a combination of registers and immediate field, as illustrated by a z / Architecture long displacement facility, where the instruction defines a base register, an index register, and an immediate field (displacement field) that are concatenated to provide, for example, the address of the operand in memory.Memory location here usually means a memory location in the main memory (main storage), unless otherwise specified.

[0323] In Fig.17C, a processor accesses memory using a load / store unit 5060. The load / store unit 5060 may perform a load operation by obtaining the address of the destination operand in memory 5053 and loading the operand into a register 5059 or other memory location 5053, or may perform a store operation by obtaining the address of the destination operand in memory 5053 and storing data obtained from a register 5059 or other memory location 5053 into the second operand location in memory 5053. The load / store unit 5060 may be speculative, or may access memory in a sequence that is out of order with respect to the instruction flow, but the load / store unit 5060 must maintain the appearance to programs that instructions are being executed in order.The load / store unit 5060 may communicate 5084 with general purpose registers 5059, a decode / dispatch unit 5056, a cache / memory interface 5053, or other elements 5083, and includes numerous register circuits 5086, 5087, 5088, and 5089, ALUs 5085, and control logic circuits 5090 to calculate memory addresses and provide pipeline sequencing to maintain the order of operations. Some operations may be performed out of order, but the load / store unit provides functionality known in the art to make them appear to have been executed in order to the program.

[0324] Preferably, addresses that an application program "sees" are often referred to as virtual addresses. Virtual addresses are sometimes referred to as "logical addresses" and "effective addresses." These virtual addresses are virtual in that they are redirected to physical memory locations by one of a variety of dynamic address translation (DAT) technologies, including simply preselecting a virtual address with an offset value, translating a virtual address through one or more translation tables, wherein the translation tables preferably comprise at least a segment table and a page table alone or in combination, wherein the segment table preferably has an entry pointing to the page table.The z / Architecture provides a translation hierarchy that includes a first region table, a second region table, a third region table, a segment table, and an optional page table. Address translation performance is often improved by using a translation lookup buffer (TLB), which contains entries that map a virtual address to a corresponding physical memory location. The entries are created when the DAT translates a virtual address using the translation tables. When the virtual address is later used, the fast TLB entry can be used instead of slow sequential accesses to the translation table. The TLB contents can be managed using a variety of replacement algorithms, including LRU (most recently used).

[0325] If the processor is a processor in a multi-processor system, each processor is responsible for maintaining shared resources such as I / O resources, caches, TLBs, and memory, which are linked together for coherence. Typically, "snoop" technologies are used to maintain cache coherence. In a snoop environment, each cache line can be marked to indicate whether it is in a shared, exclusive, modified, invalid, or similar state to facilitate sharing.

[0326] The I / O units 5054 ( Fig. 16) provide the processor with a means of connecting to peripheral devices, including, for example, tape, disk, printers, displays, and networks. I / O devices are often made available to the computer program through software drivers. In mainframe computers such as IBM's System z ®Channel adapters and open system adapters are I / O units of the mainframe computer that ensure data transfer between the operating system and peripheral devices.

[0327] Furthermore, other types of computing environments may benefit from one or more aspects. For example, an environment may include an emulator (e.g., software or other emulation mechanisms) in which a particular architecture (including, for example, instruction execution, designed functions such as address translation, and designed registers) or a subset thereof is emulated (e.g., in a native computer system having a processor and memory). In such an environment, one or more emulation functions of the emulator may implement one or more embodiments, even though a computer executing the emulator may have a different architecture than the capabilities being emulated. In emulation mode, for example, the particular instruction or operation being executed is emulated.being emulated is decoded, and a suitable emulation function is created to implement the individual instruction or operation.

[0328] For example, in an emulation environment, a host computer includes memory for storing instructions and data; an instruction fetch unit for fetching instructions from memory and optionally providing local buffering for the fetched instruction; an instruction decode unit for receiving the fetched instructions and determining the type of instructions fetched; and an instruction execution unit for executing the instructions. Execution may include loading data into a register of memory; storing data from a register back into memory; or performing a particular type of arithmetic or logical operation as specified by the decode unit. In one example, each unit is implemented in software. The operations performed by the units are implemented, for example, as one or more subroutines in the emulator software.

[0329] In a mainframe computer in particular, programmers, who today are usually C programmers, often use designed machine instructions through a compiler application. These instructions stored in the storage medium can be used in a z / Architecture IBM ® Server or alternatively in machines where other architectures are implemented. They can be run natively in existing and future IBM ® Mainframe servers or other IBM machines ® emulated (e.g. Power Systems servers and System x servers). They can be used in machines running Linux on a wide variety of machines that use hardware developed by IBM ® , Intel ®, AMD, and others. In addition to running on this hardware under z / Architecture, it can run on Linux and machines that use emulation by Hercules, UMX, or FSI (Fundamental Software, Inc.), generally running in emulation mode. In emulation mode, the emulation software is executed by a native processor to emulate the architecture of an emulated processor.

[0330] The native processor typically runs emulation software, which includes firmware or a native operating system to perform an emulation of the emulated processor. The emulation software is responsible for fetching and executing instructions of the emulated processor architecture. The emulation software maintains an emulated program counter to track instruction boundaries. The emulation software can fetch one or more emulated machine instructions simultaneously and translate the one or more emulated machine instructions into a corresponding set of native machine instructions for execution by the native processor. These translated instructions can be cached, allowing for faster execution.However, the emulation software must maintain the architectural rules of the emulated processor architecture to ensure that operating systems and applications written for the emulated processor operate correctly. Furthermore, the emulation software provides resources characterized by the emulated processor architecture, including, but not limited to, control registers, general-purpose registers, floating-point registers, dynamic address translation functionality using, for example, segment tables and page tables, interrupt mechanisms, context-switching mechanisms, time-of-day (TOD) clocks, and designed interfaces to I / O subsystems, so that an operating system or application program designed to operate the emulated processor can run on the native processor containing the emulation software.

[0331] A specific instruction being emulated is decoded, and a subroutine is called to perform the function of the individual instruction. An emulation software function that emulates a function of an emulated processor is implemented, for example, in a "C" subroutine or driver, or some other method of providing a driver for the specific hardware is implemented, which is within the skill of one skilled in the art after understanding the description of the preferred embodiment. Numerous patents relating to software and hardware emulation, including U.S. Patent No. 5,551,013, entitled "Multiprocessor for Hardware Emulation," by Beausoleil et al.; and U.S. Patent No. 6,009,261, entitled "Preprocessing of Stored Target Routines for Emulating Incompatible Instructions on a Target Processor," by Scalzi et al.; and U.S. Patent No.5 574 873 mit dem Titel „Decoding Guest Instruction to Directly Access Emulation Routines that Emulate the Guest Instructions“ von Davidian et al; and US-Patentschrift Nr. 6 308 255 mit dem Titel „Symmetrical Multiprocessing Bus and Chipset Used for Coprocessor Support Allowing Non-Native Code to Run in a System“ von Gorishek et al; und US-Patentschrift Nr. 6 463 582 mit dem Titel „Dynamic Optimizing Object Code Translator for Architecture Emulation and Dynamic Optimizing Object Code Translation Method“ von Lethin et al; und US-Patentschrift Nr.No. 5,790,825 entitled "Method for Emulating Guest Instructions on a Host Computer Through Dynamic Recompilation of Host Instructions" by Eric Traut; each of which is incorporated herein by reference in its entirety, but is not limited to these, and many others illustrate a variety of known ways of achieving emulation of an instruction format designed for another machine for a target machine available to one skilled in the art.

[0332] In Fig.18, an example of an emulated host computer system 5092 is provided that emulates a host computer system 5000' of a host architecture. In the emulated host computer system 5092, the host processor (CPU) 5091 is an emulated host processor (or virtual host processor) and includes an emulation processor 5093 having a different native instruction set architecture than that of the processor 5091 of the host computer 5000'. The emulated host computer system 5092 has a memory 5094 accessible by the emulation processor 5093. In the exemplary embodiment, the memory 5094 is partitioned into a portion of host computer memory 5096 and a portion of emulation routines 5097. The host computer memory 5096 is available for programs of the emulated host computer 5092 according to the host computer architecture.The emulation processor 5093 executes native instructions of a set of designed instructions of an architecture different from that of the emulated processor 5091, the native instructions obtained from the emulation routine memory 5097, and can access a host instruction for executing a program in the host computer memory 5096 using one or more instructions obtained in a sequence and access / decode routine that can decode accessed host instructions to determine a native instruction execution routine for emulating the function of the accessed host instruction.Additional features defined for the architecture of the host computer system 5000 may be emulated by routines of the designed features, including features such as general-purpose registers, control registers, dynamic address translation, I / O subsystem support, and processor cache memory. The emulation routines may also take advantage of features available in the emulation processor 5093 (such as general-purpose registers and dynamic virtual address translation) to enhance the performance of the emulation routines. Special hardware and off-load control routines may also be provided to assist the processor 5093 in emulating the functionality of the host computer 5000.

[0333] In another embodiment, one or more aspects relate to cloud computing. While this disclosure contains a detailed description of cloud computing, it should be understood at the outset that implementations of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention may be implemented in connection with any other type of computing environment currently known or developed in the future.

[0334] Cloud computing is a service delivery model that enables seamless, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, storage, storage facilities, applications, virtual machines, and services) that can be rapidly provisioned and decommissioned with minimal management effort or interaction with a service provider. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.

[0335] There are the following characteristics: Self-service on demand: a cloud customer can automatically provision themselves with data processing functions such as server time and network storage facilities on demand, without the need for human interaction with the service provider. General network access: Functions can be available over a network, and access can be provided through standard mechanisms that support the use of heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs). Resource pooling: A provider's computing resources are pooled to serve multiple customers using a multi-tenant model with diverse physical and virtual resources that are dynamically allocated and reassigned as needed. There is a type of location independence in that the customer generally has no control or knowledge of the exact location of the deployed resource, but they may be able to specify the location at a higher level of abstraction (e.g., country, state, or data center). Rapid adaptability: Features can be deployed quickly and elastically, in some cases automatically for rapid expansion, and rapidly released for rapid downsizing. To the customer, the features available for deployment often appear unlimited and can be purchased in any quantity at any time. Metered service: Cloud systems automatically control and optimize resource usage by leveraging a metering function at a specific level of abstraction appropriate for the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported on, providing transparency for both the provider and the consumer of the service.

[0336] There are the following service models: Software as a Service (SaaS): The functionality provided to the customer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices via a thin-client interface such as a web browser (e.g., web-based email). The customer does not manage or control the underlying cloud infrastructure, which includes the network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings. Platform as a Service (PaaS): The functionality provided to the customer is to deploy applications created or acquired by the customer on the cloud infrastructure using programming languages ​​and tools supported by the provider. The customer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does have control over the deployed applications and possibly over configuration settings of an application hosting environment. Infrastructure as a Service (IaaS): The functionality provided to the customer consists of providing processing, storage, networking, and other basic computing resources, allowing the customer to arbitrarily deploy and operate software, which may include operating systems and applications. The customer does not manage or control the underlying cloud infrastructure, but does have control over operating systems, storage, deployed applications, and, to a limited extent, possibly also selected network components (e.g., host firewalls).

[0337] There are the following deployment models: Private cloud: The cloud infrastructure is operated solely for an organization. It can be managed by the organization or a third party and can be hosted internally or externally. Community cloud: The cloud infrastructure is shared by multiple organizations and supports a specific community united by common concerns (e.g., mission, security requirements, strategy, and compliance considerations). It can be managed by the organizations or a third party and can be internal or external. Public cloud: The cloud infrastructure is made available to the general public or a large industry group and is owned by an organization that sells cloud services. Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community or public) that remain independent entities but are interconnected by a standardized or proprietary technology that enables data and application mobility (e.g. cloud bursting for load balancing between clouds).

[0338] A cloud computing environment is service-oriented, with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the core of cloud computing is an infrastructure consisting of a network of interconnected nodes.

[0339] In Fig. Figure 19 shows a schematic representation of an example cloud computing node. Cloud computing node 6010 is merely an example of a suitable cloud computing node and is not intended to impose any limitations on the scope of uses or functionality of embodiments of the invention described herein. Regardless, cloud computing node 6010 may be implemented and / or perform any of the functionalities listed above.

[0340] Within the cloud computing node 6010, there is a computer system / server 6012 that can operate with numerous other environments or configurations of a general-purpose or special-purpose computing system. Examples of known computing systems, environments, and / or configurations suitable for use with the computer system / server 6012 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above-mentioned systems or devices, and the like.

[0341] The computer system / server 902 may be described in the general context of computer system-executable instructions, such as program modules executed by a computer system. Program modules may generally include routines, programs, objects, components, logic circuits, data structures, etc., that perform specific tasks or implement certain types of abstract data. The computer system / server 902 may be implemented in distributed cloud computing environments, where tasks are performed by remote computing devices connected via a communications network. In a distributed cloud computing environment, program modules may be located in storage media of both the local and remote computer systems, including memory storage devices.

[0342] As in Fig.19, the computer system / server 6012 in the cloud computing node 6010 is shown in the form of a general-purpose computing device. The components of the computer system / server 6012 may include one or more processors or processing units 6016, a system memory 6028, and a bus 6018 that connects various system components, including, but not limited to, the system memory 6028, to the processor 6016.

[0343] Bus 6018 represents one or more of various types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using one of a variety of bus architectures. By way of example only and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnects (PCI) bus.

[0344] The computer system / server 6012 typically includes a variety of media readable by the computer system. Such media may be any available media accessible by the computer system / server 6012, and includes both volatile and non-volatile media, as well as removable and non-removable media.

[0345] The system memory 6028 may include computer system-readable media in the form of volatile memory, such as random access memory (RAM) 6030 and / or cache memory 6032. The computer system / server 6012 may further include other volatile / non-volatile removable / non-removable storage media of the computer system. For example only, the storage system 6034 may be provided for reading from and writing to non-removable, non-volatile magnetic media (not shown and commonly referred to as a "hard disk drive"). Although not shown, a magnetic disk drive for reading from and writing to a non-volatile removable magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from and writing to a non-volatile removable optical disk such as a CD-ROM, DVD-ROM, or other optical media may be provided.In such cases, each medium may be connected to bus 6018 through one or more data media interfaces. As further illustrated and described below, memory 6028 may contain at least one program product having a group of program modules (e.g., at least one program module) configured to perform the functions of embodiments of the invention.

[0346] The program / utility 6040, which includes a group of program modules 6042 (at least one program module), may be stored in a memory 6028, by way of example and not limitation, just like an operating system, one or more application programs, and program data. A networking environment may be implemented in any operating system, one or more application programs, other program modules, and program data, or certain combinations thereof. Program modules 6042 generally perform the functions and / or procedures of embodiments of the invention described herein.

[0347] The computer system / server 6012 may also communicate with one or more external devices 6014 such as a keyboard, a pointing device, a display 6024, etc.; with one or more devices that enable a user to interact with the computer system / server 6012; and / or with any device (e.g., network card, modem, etc.) that enables the computer system / server 6012 to communicate with one or more other computing devices. Such communication may occur via input / output (I / O) interfaces 6022. Furthermore, the computer system / server 6012 may communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and / or a public network (e.g., the Internet) via a network adapter 6020. As shown, the network adapter 6020 communicates with the other components of the computer system / server 6012 via a bus 6018.Although not shown, it should be understood that additional hardware and / or software components could be used in conjunction with the computer system / server 6012. Examples include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archive storage systems, etc.

[0348] In Fig.20, an illustrative cloud computing environment 6050 is shown. As shown, the cloud computing environment 6050 includes one or more cloud computing nodes 6010 with which local computing devices used by cloud customers, such as a personal digital assistant (PDA) or cellular telephone 6054A, a desktop computer 6054B, a laptop computer 6054C, and / or a vehicle computing system 6054N, can communicate. The nodes 6010 can communicate with each other. They can be physically or virtually grouped in one or more networks, such as private, community, public, or hybrid clouds described above, or a combination thereof (not shown). This allows the cloud computing environment 6050 to provide infrastructure, platforms, and / or software as services for which a cloud customer does not need to maintain resources in a local computing device.It is clear that the types of data processing units 6054A to N described in . Fig. 20 are intended to be illustrative only, and that computing nodes 6010 and cloud computing environment 6050 may communicate with any type of computing device over any type of network and / or network-addressable connection (e.g., using a web browser).

[0349] In Fig. 21 shows a group of functional abstraction layers implemented by the cloud computing environment 6050 ( Fig. 20). It should be clear from the outset that the Fig. The components, layers, and functions shown in Figure 21 are intended to be illustrative only, and embodiments of the invention are not limited thereto. As shown, the following layers and related functions are provided: The hardware and software layer 6060 contains hardware and software components. Examples of hardware components include mainframe computers, in one example IBM ® zSeries ® -Systems, servers based on a RISC (Reduced Instruction Set Computer) architecture, in one example IBM pSeries ® -Systems; IBM xSeries ® -Systems; IBM BladeCenter ® Systems; storage devices; networks and networking components. Examples of software components include network application server software, for example IBM WebSphere ® -Application server software; and database software, in one example IBM DB2 ® Database software. (IBM, zSeries, pSeries, xSeries, BladeCenter, WebSphere, and DB2 are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide.)

[0350] The virtualization layer 6062 provides an abstraction layer from which the following examples of virtual entities can be provided: virtual servers; virtual storage devices; virtual networks, including virtual private networks; virtual applications and operating systems; and virtual clients.

[0351] In one example, the management layer 6064 may provide the functions described below. Resource Provisioning ensures dynamic procurement of computing resources and other resources used to perform tasks in the cloud computing environment. Metering and Pricing provides cost tracking with respect to the resources used in the cloud computing environment, as well as billing or invoicing for the use of these resources. In one example, these resources may include application software licenses. Security provides identity verification for cloud customers and tasks, as well as protection of data and other resources. User Portal provides access to the cloud computing environment for customers and system administrators.Context-aware service level management (SLM) ensures the allocation and management of cloud computing resources to ensure compliance with prescribed service level values. Service level agreement (SLA) planning and fulfillment ensures the preparatory reservation and procurement of cloud computing resources for which future demand is expected according to a service level agreement (SLA).

[0352] Workload layer 6066 provides examples of the functionality for which the cloud computing environment can be used. Examples of workloads and functions that can be provided by this layer include: mapping and navigation; software development and lifecycle management; virtual classroom educational content delivery; data analytics processing; and transaction processing.

[0353] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context expressly indicates otherwise. It is further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more features, integers, steps, operations, elements, components, and / or groups thereof.

[0354] The corresponding structures, materials, effects, and substitutions for all means or steps plus functional elements in the following claims are intended to include any structures, materials, or effects for performing the function in combination with other elements specifically claimed. The description of one or more embodiments has been presented for purposes of illustration and description, but is not intended to be exhaustive or limiting of the invention in the form disclosed. Many modifications and variations will be apparent to one skilled in the art. The embodiment was chosen and described in order to best explain various aspects and practical application and to enable those not skilled in the art to understand various embodiments with numerous modifications as are suited to the practical use contemplated.

Claims

[1] A computer program product for executing a machine instruction in a transactional data processing environment (100), the computer program product comprising: a computer-readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: by a processor (110) obtaining the machine instruction for execution in the transactional data processing environment, the machine instruction being defined for computer execution according to a computer architecture, the machine instruction comprising: an operation code field (202, 302, 402, 502) used to specify an operation code for specifying an operation to terminate conditional instructions; and by the processor (110) executing the machine instruction, wherein the execution includes: Obtaining an operand (1150) of the machine instruction, the operand having a signed value; Determining (1152) whether the operand has a predetermined relationship with respect to a value, wherein the predetermined relationship includes equality and the value is zero; Determining (1156) whether the operand is greater than zero, and based on the fact that the operand is greater than zero, delaying (1158) the execution of the machine instruction and repeating obtaining and determining, and based on the operand being less than zero, prematurely terminating (1160) the machine instruction based on determining that the operand does not have the predetermined relationship with respect to a value; Executing (1154) the machine instruction based on determining that the operand has the specified relationship with respect to a value; and wherein receiving the operand, determining whether the operand has the predetermined relationship with respect to the value, further determining whether the operand is greater than zero based on determining that the operand does not have the predetermined relationship with respect to the value, and executing the machine instruction based on determining that the operand has the predetermined relationship with respect to a value are performed as part of a single instruction containing the operation code. [2] The computer program product of claim 1, wherein the machine instruction is executed as part of a transaction, and wherein the execution of the transaction is aborted based on the fact that the operand is less than zero. [3] The computer program product of claim 1, wherein the machine instruction is executed as part of a transaction. [4] The computer program product of claim 3, wherein the machine instruction comprises an instruction to terminate a conditional transaction, and wherein, based on determining that the operand has the predetermined relationship to the value, the transaction is terminated and stores of the transaction are committed. [5] The computer program product of claim 3, wherein the machine instruction comprises a conditional transaction termination instruction, and wherein execution of the transaction is delayed based on determining that the operand does not have the predetermined relationship to the value but has a different relationship to the value. [6] The computer program product of claim 5, wherein the other relationship includes greater than and the value is zero, and wherein the operand is greater than zero and execution of the transaction is delayed. [7] The computer program product of claim 5, wherein based on determining that the operand does not have the predetermined relationship or the other relationship to the value, the value is zero, but that there is another relationship to the value in that the operand is less than zero, the transaction is aborted. [8] A computer system for executing a machine instruction in a transactional data processing environment (100), the computer system comprising: a memory; and a processor (110) communicating with the memory, the computer system being configured to perform a method, the method including: by the processor (110) obtaining the machine instruction for execution in the transactional data processing environment, the machine instruction being defined for computer execution according to a computer architecture, the machine instruction comprising: an operation code field (202, 302, 402, 502) used to specify an operation code for specifying an operation to terminate conditional instructions; and by the processor (110) executing the machine instruction, wherein the execution includes: Obtaining an operand (1150) of the machine instruction, the operand having a signed value; Determining (1152) whether the operand has a predetermined relationship with respect to a value, wherein the predetermined relationship includes equality and the value is zero; Determining (1156) whether the operand is greater than zero, and based on the fact that the operand is greater than zero, delaying (1158) the execution of the machine instruction and repeating obtaining and determining, and based on the operand being less than zero, prematurely terminating (1160) the machine instruction based on determining that the operand does not have the predetermined relationship with respect to the value; Executing (1154) the machine instruction based on determining that the operand has the specified relationship with respect to the value; and wherein receiving the operand, determining whether the operand has the predetermined relationship with respect to the value, further determining whether the operand is greater than zero based on determining that the operand does not have the predetermined relationship with respect to the value, and executing the machine instruction based on determining that the operand has the predetermined relationship with respect to the value are performed as part of a single instruction containing the operation code. [9] The computer system of claim 8, wherein the machine instruction is executed as part of a transaction, and wherein execution of the transaction is aborted based on the fact that the operand is less than zero. [10] The computer system of claim 8, wherein the machine instruction is executed as part of a transaction. [11] The computer system of claim 10, wherein the machine instruction comprises an end conditional transaction instruction, and wherein, based on determining that the operand has the predetermined relationship to the value, the transaction is ended and stores of the transaction are committed. [12] The computer program product of claim 1, wherein delaying comprises delaying execution of the machine instruction until the operand has the predetermined relationship with respect to the value. [13] The computer system of claim 8, wherein delaying comprises delaying execution of the machine instruction until the operand has the predetermined relationship with respect to the value. [14] The computer system of claim 10, wherein the machine instruction comprises a conditional transaction termination instruction, and wherein execution of the transaction is delayed based on determining that the operand does not have the predetermined relationship to the value but has a different relationship to the value. [15] The computer system of claim 14, wherein the other relationship includes greater than and the value is zero, and wherein the operand is greater than zero and execution of the transaction is delayed. [16] The computer system of claim 14, wherein the transaction is aborted based on determining that the operand does not have the predetermined relationship or the other relationship to the value, the value is zero, but that there is another relationship to the value in that the operand is less than zero.

Citation Information

Patent Citations

  • Multiprocessor for hardware emulation

    US5551013A

  • Decoding guest instruction to directly access emulation routines that emulate the guest instructions

    US5574873A

  • Method for emulating guest instructions on a host computer through dynamic recompilation of host instructions

    US5790825A

  • Preprocessing of stored target routines for emulating incompatible instructions on a target processor

    US6009261A

  • Symmetrical multiprocessing bus and chipset used for coprocessor support allowing non-native code to run in a system

    US6308255B1