# US 2008/0313431 A1 · Method and System for Altering Processor Execution of a Group of Instructions

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

- Number: US 2008/0313431 A1
- Document ID: US20080313431A1
- Status: Published application
- Kind: A1
- Application number: 12/198,931
- Filed: 2008-08-27
- Published: 2008-12-18
- Earliest claimed: 2003-05-12
- Assignees: International Business Machines Corporation
- Inventors: Fadi Y. Busaba; Timothy J. Slegel
- Web page: https://patentgrep.com/patent/US20080313431A1

## CPC

- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3017: {Runtime instruction translation, e.g. macros}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/3853: {of compound instructions}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An embodiment of the invention is a processor for detecting one or more groups of instructions and initiating a processor action upon detecting one or more groups of instructions. The processor includes an instruction unit for fetching and decoding a group of instructions. An instruction register receives the group of instruction having at least one instruction opcode. A control register includes a control word including a control opcode and an action field defining a processor action. An execution unit includes compare logic for comparing the instruction opcode and the control opcode. The execution unit initiates the processor action upon the compare logic detecting a hit between the instruction opcode and the control opcode.

## Claims

### Claim 1

A processor for detecting one or more groups of instructions and initiating a processor action upon detecting one or more groups of instructions, the processor comprising:
an instruction unit fetching and decoding a group of instructions;
an instruction register receiving said group of instructions having at least one instruction opcode;
a control register including a control word including a control opcode and an action field defining said processor action;
an execution unit having compare logic comparing said instruction opcode and said control opcode, said execution unit initiating said processor action upon said compare logic detecting a hit between said instruction opcode and said control opcode;
wherein:
said control word includes multiple control opcodes and a field indicating grouped mode or non-grouped mode;
in grouped mode, said compare logic indicates a hit if all of said control opcodes are present in said instruction opcodes of said group of instructions;
in non-grouped mode, said compare logic indicates a hit if one of said control opcodes is present in said instruction opcodes of said group of instructions.

### Claim 2 (depends on 1)

The processor of claim 1 wherein:
said control word includes multiple control opcodes and a field indicating sequential mode or non-sequential mode;
in sequential mode, said compare logic initiates said processor action upon detecting a hit if said control opcodes are present in said instruction opcodes of said group of instructions in a predefined sequence;
in non-sequential mode, said compare logic initiates said processor action upon detecting a hit.

### Claim 3 (depends on 1)

The processor of claim 1 wherein:
said control word includes multiple control opcodes and a field indicating sequential mode or non-sequential mode;
in sequential mode, said compare logic initiates said processor action upon detecting a hit and if said control opcodes are present in said instruction opcodes of said group of instructions in a predefined sequence;
in non-sequential mode, said compare logic initiates said processor action upon detecting a hit.

### Claim 4 (depends on 1)

The processor of claim 1 wherein:
said processor action includes serializing instruction processing before executing said group of instructions.

### Claim 5 (depends on 1)

The processor of claim 1 wherein:
said processor action includes serializing instruction processing after executing said group of instructions.

### Claim 6 (depends on 1)

The processor of claim 1 wherein:
said processor action includes inserting a delay before executing said group of instructions.

### Claim 7 (depends on 1)

The processor of claim 1 wherein:
said processor action includes inserting a delay after executing said group of instructions.

### Claim 8 (depends on 1)

The processor of claim 1 wherein:
said processor action includes holding execution of said group of instructions for a number of cycles.

### Claim 9 (depends on 1)

The processor of claim 1 wherein:
said control word includes a control qualifiers, said control qualifier defining a condition to be met before said processor action.

### Claim 10

An execution unit for detecting one or more groups of instructions and initiating a processor action upon detecting one or more groups of instructions, the execution unit comprising:
an instruction register receiving said group of instructions having at least one instruction opcode;
a control register including a control word including a control opcode and an action field defining said processor action;
compare logic comparing said instruction opcode and said control opcode, said execution unit initiating said processor action upon said compare logic detecting a hit between said instruction opcode and said control opcode;
wherein:
said control word includes multiple control opcodes and a field indicating grouped mode or non-grouped mode;
in grouped mode, said comparing indicates a hit if all of said control opcodes are present in said instruction opcodes of said group of instructions;
in non-grouped mode, said comparing indicates a hit if one of said control opcodes is present in said instruction opcodes of said group of instructions.
