# US 2008/0288238 A1 · Computing System with Guest Code Support of Transactional Memory

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

- Number: US 2008/0288238 A1
- Document ID: US20080288238A1
- Status: Published application
- Kind: A1
- Application number: 11/928,857
- Filed: 2007-10-30
- Published: 2008-11-20
- Earliest claimed: 2007-05-14
- Assignees: International Business Machines Corporation
- Inventors: Thomas J. Heller, JR.
- Web page: https://patentgrep.com/patent/US20080288238A1

## CPC

- G06F 9/45504: {Abstract machines for program code execution, e.g. Java virtual machine [JVM], interpreters or emulators}
- G06F 9/30087: {Synchronisation or serialisation instructions}
- G06F 9/45537: {Provision of facilities of other operating environments, e.g. WINE (I/O emulation G06F13/105)}
- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data structure of readily accessible units of memory is provided as computer useable media having computer readable program code logic providing information tables and a software emulation program to enable hardware to run new software that uses transactional memory and a bit associated with a transaction for executing transactional memory constructs. The data structure with Guest PTRAN bit is used in emulation of software written for a given computer on a different computer which executes a different set of instructions. The emulating instructions are used to provide transactional memory instructions on a computer which does not support those instructions natively

## Claims

### Claim 1

An article of manufacture comprising:
at least one computer usable medium having computer readable program code logic tangibly embodied therein for facilitating access to memory of a processing environment, said computer readable program code logic providing information tables and a software emulation program to enable hardware to run new software that uses transactional memory and a bit associated with a memory increment for executing transactional memory constructs.

### Claim 2 (depends on 1)

The article of manufacture of claim 1, wherein the processing environment memory is accessible by said software emulation program for running said new software which uses a transactional memory and a bit associated with a memory increment for transactional memory on hardware which does not provide some or all of the hardware features otherwise required to run said new software.

### Claim 3 (depends on 2)

The article of manufacture of claim 2, wherein the new software enables guest code for executing transactional memory constructs.

### Claim 4 (depends on 1)

The article of manufacture of claim 1, wherein information of said information tables in a guest state is used to determine which of multiple routines will be used to implement instruction loads and stores that are part of transactions in the guest code of said new software in order for said new software to be effectively executed.

### Claim 5 (depends on 4)

The article of manufacture of claim 4, wherein the software emulation program runs on one system architecture and emulates a second system architecture for executing transactional memory construction of the processing environment.

### Claim 6 (depends on 4)

The article of manufacture of claim 4, wherein said hardware provides host memory and a portion of said host memory keeps tables of transactional memory information and said guest state information.

### Claim 7 (depends on 6)

The article of manufacture of claim 6, wherein a portion of host memory is also used to store the emulation routines.

### Claim 8 (depends on 1)

The article of manufacture of claim 1, wherein the designation comprises one or more addresses of the unit of memory.

### Claim 9 (depends on 8)

The article of manufacture of claim 8, wherein the one or more addresses comprises a logical address and a host absolute address of the unit of memory.

### Claim 10 (depends on 1)

The article of manufacture of claim 1, further comprising a plurality of Guest PTRAN bits per memory increment.

### Claim 11 (depends on 1)

The article of manufacture of claim 1 further comprising means for causing loading and storing the correct bits in the entries held in the new Guest PTRAN bit table in host memory as a virtual replacement for PTRAN bits when the native hardware does not provide them.

### Claim 12 (depends on 11)

The article of manufacture of claim 11 further comprising a plurality of Guest PTRAN bits per memory increment.

### Claim 13 (depends on 1)

The article of manufacture of claim 1 wherein the system architecture of the processing environment includes a plurality of implementation layers which define the architected aspects of the processing environment and supplies transactional memory guest code.

### Claim 14 (depends on 1)

The article of manufacture of claim 1 wherein the processing environment is responsive to guest code instructions used to implement a transaction memory.

### Claim 15 (depends on 14)

The article of manufacture of claim 14 wherein said guest code determines how nested transactions are identified.

### Claim 16 (depends on 1)

The article of manufacture of claim 1 where in guest instructions are read from memory and a decision is made based upon the type of guest instruction whether a current guest state of the processing environment is set or reset or unchanged.

### Claim 17 (depends on 1)

The article of manufacture according to claim 1 wherein a guest TRAN_MEM mode controls how native instructions are generated.

### Claim 18 (depends on 1)

The article of manufacture according to claim 1 wherein a speculative state using a Guest PTRAN bit and transaction tables is tracked.

### Claim 19 (depends on 1)

The article of manufacture according to claim 1 wherein an atomic instruction group (AIG) identifies a transaction and a load instruction inside of an AIG detects upon inspection the state of a Guest PTRAN bit.

### Claim 20 (depends on 1)

The article of manufacture according to claim 1 wherein processing of a store is part of an atomic instruction group during emulation of a transaction.

### Claim 21 (depends on 1)

The article of manufacture according to claim 1 wherein said information tables are Transaction Tables created as part of the system memory of the processing environment, said system memory being selected from real, logical or virtual memory

### Claim 22

A method of utilizing a processing environment to provide transactional memory instructions on a computer which does not support those instructions natively, comprising the steps of:
storing computer readable program code logic in a memory buffer of said processing environment for facilitating access to memory for executing transactional memory constructs,
said computer readable program code logic providing information tables created as part of the system memory of the processing environment as transaction tables for transactional memory,
and executing a software emulation program to enable said processing environment hardware to run transactional application software using transactional memory and a bit associated with a memory increment for executing transactional memory constructs.

### Claim 23

A system for transactional memory processing in a processing environment to provide transactional memory instructions on a computer which does not support those instructions natively, said system comprising:
a processor environment having hardware, firmware and operating system software, and memory for storing instructions and data in a buffer,
computer readable program code logic tangibly embodied therein stored in said buffer for facilitating access to memory of a processing environment, said computer readable program code logic providing information tables and a software emulation program to enable said processing environment hardware to run transactional application software using transactional memory and a bit associated with a memory increment for executing transactional memory constructs.

### Claim 24

A system for transactional memory processing in a processing environment to provide transactional memory instructions on a computer which does not support those instructions natively, said system comprising:
a processing environment including a processor and memory for storing native and guest instructions and data in a memory buffer having a plurality of memory elements,
a guest TRAN_MEM mode generator for controlling how native instructions are generated,
guest instructions for determining, based on the type of instruction, whether a guest TRAN_MEM mode is inspected, and if inspected, for determining how a guest instruction is executed,
an emulator for inserting special code for said native and guest instruction which implement special transaction memory storage access rules for loads and stores in said processing environment
said emulator inserting either normal emulation code or special transactional memory code upon inspection of a guest instruction.

### Claim 25

A system for transactional memory processing in a processing environment to provide transactional memory instructions on a computer which does not support those instructions natively, said system comprising:
a processing environment including a host processor and host memory for storing native and guest instructions and data in a memory buffer having a plurality of memory elements,
an emulator having special emulator code for emulating loads and stores that occur while a guest is in a TRAN_MEM mode implements setting and resetting of Guest PTRAN by loading and storing correct bits in entries held in a Guest PTRAN bit table in said memory buffer allowing said emulator to use said host memory as a virtual replacement for the PTRAN bits when the native hardware does not provide them, said Guest PTRAN bit table being indexed with the guest real address of the load or store to be emulated.
