# US 2016/0259644 A1 · Optimized mode transitions through predicting target state

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

- Number: US 2016/0259644 A1
- Document ID: US20160259644A1
- Status: Published application
- Kind: A1
- Application number: 14/639,004
- Filed: 2015-03-04
- Published: 2016-09-08
- Earliest claimed: 2015-03-04
- Assignees: Intel Corporation
- Inventors: Jason W. Brandt; Vedvyas Shanbhogue; Kameswar Subramaniam
- Web page: https://patentgrep.com/patent/US20160259644A1

## CPC

- G06F 9/30076: {to perform miscellaneous control operations, e.g. NOP}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment, software executing on a data processing system that is capable of performing dynamic operational mode transitions can realize performance improvements by predicting transitions between modes and/or predicting aspects of a new operational mode. Such prediction can allow the processor to begin an early transition into the target mode. The mode transition prediction principles can be applied for various processor mode transitions including 64-bit to 32-bit mode transitions, interrupts, exceptions, traps, virtualization mode transfers, system management mode transfers, and/or secure execution mode transfers.

## Claims

### Claim 1

A machine-readable medium having stored thereon data, which if performed by at least one machine, causes the at least one machine to fabricate at least one integrated circuit to perform operations including:
decoding a first instruction into a first decoded instruction, the first instruction to cause a control flow transfer within the at least one integrated circuit from a first set of instructions to a target in a second set of instructions; and
predicting an operational mode of the at least one integrated circuit, the operational mode associated with the second set of instructions, wherein the operational mode is predicted before completing execution of the first decoded instruction.

### Claim 2 (depends on 1)

The medium as in claim 1, wherein the operations additionally include predicting the operational mode based on the operational mode associated with the first set of instructions.

### Claim 3 (depends on 1)

The medium as in claim 1, wherein the operations additionally include predicting the operational mode based on an address associated with the target in the second set of instructions.

### Claim 4 (depends on 1)

The medium as in claim 1, wherein the operations additionally include predicting the operational mode based on past behavior associated with the first instruction.

### Claim 5 (depends on 4)

The medium as in claim 4, wherein the past behavior includes operational mode changes or operational mode predictions associated with the first instruction.

### Claim 6 (depends on 1)

The medium as in claim 1, wherein the operations additionally include loading configuration data associated with a predicted operational mode into internal registers of the at least one integrated circuit.

### Claim 7 (depends on 1)

The medium as in claim 1, wherein the operational mode of the at least one integrated circuit includes one of a 64-bit mode, a 32-bit mode, or a compatibility mode.

### Claim 8 (depends on 7)

The medium as in claim 7, wherein the compatibility mode is a 32-bit compatibility mode.

### Claim 9 (depends on 1)

The medium as in claim 1, wherein the operational mode of the at least one integrated circuit includes one or more of a virtualization mode, a system management mode, and a secure execution mode.

### Claim 10 (depends on 9)

The medium as in claim 9, wherein the operations additionally include predicting a target operational mode during an event of the at least one integrated circuit, the event including one of a trap, interrupt, or exception.

### Claim 11 (depends on 1)

The medium as in claim 1, wherein the operations additionally include:
executing the decoded instruction; and
while executing the decoded instruction, speculatively fetching instructions from the second set of instructions using a predicted operational mode.

### Claim 12 (depends on 1)

The medium as in claim 1, wherein the operations additionally include:
resolving the predicting of the operational mode; and
completing execution of the decoded instruction.

### Claim 13 (depends on 12)

The medium as in claim 12, wherein resolving the predicting of the operational mode includes loading actual configuration data associated with the second set of instructions and comparing the actual configuration data with predicted configuration data.

### Claim 14

A processing apparatus comprising:
first logic to decode a first instruction into a first decoded instruction, the first decoded instruction to perform a control flow transfer within the processing apparatus from a first set of instructions to a target in a second set of instructions;
second logic to predict an operational mode of the processing apparatus, the operational mode associated with the second set of instructions and predicted before completing execution of the first decoded instruction.

### Claim 15 (depends on 14)

The processing apparatus as in claim 14, wherein the second logic to predict the operational mode based on operational mode configuration data associated with the first set of instructions.

### Claim 16 (depends on 14)

The processing apparatus as in claim 14, wherein the second logic to predict the operational mode based on an address associated with the target in the second set of instructions.

### Claim 17 (depends on 14)

The processing apparatus as in claim 14, wherein the operations additionally include predicting the operational mode based on past behavior associated with the first instruction.

### Claim 18 (depends on 14)

The processing apparatus as in claim 14, wherein the first set of instructions is at least in part in a first code segment and the second set of instructions is at least in part in a second code segment that differs from the first code segment.

### Claim 19 (depends on 14)

The processing apparatus as in claim 14, wherein the first set of instructions and the second set of instructions are in the same code segment.

### Claim 20

A non-transitory machine-readable medium storing instructions which, when performed by a processing system including one or more processors, cause the processing system to perform operations including:
decoding a first instruction into a first decoded instruction, the first instruction to perform a control flow transfer within the processing system from a first set of instructions to a second set of instructions; and
predicting an operational mode of the at least one integrated circuit associated with the second set of instructions, the operational mode predicted before completing execution of the first decoded instruction.

### Claim 21 (depends on 20)

The medium as in claim 20, wherein the operations additionally include:
executing the decoded instruction;
while executing the decoded instruction, speculatively fetching instructions from a target associated with the control flow transfer using a predicted operational mode;
resolving the predicting of the operational mode; and
completing execution of the decoded instruction.

### Claim 22 (depends on 21)

The medium as in claim 21, wherein resolving the predicting of the operational mode includes loading actual configuration data associated the second set of instructions and comparing the actual configuration data with predicted configuration data.

### Claim 23 (depends on 22)

The medium as in claim 22, wherein the operations additionally include loading the actual configuration data associated with the second set of instructions from a segment descriptor associated with the second set of instructions.
