# US 2021/0279058 A1 · Control Transfer Termination Instructions Of An Instruction Set Architecture (ISA)

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

- Number: US 2021/0279058 A1
- Document ID: US20210279058A1
- Status: Published application
- Kind: A1
- Application number: 17/329,231
- Filed: 2021-05-25
- Published: 2021-09-09
- Earliest claimed: 2012-11-30
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Vedvyas Shanbhogue; Jason W. Brandt; Uday R. Savagaonkar; Ravi L. Sahita
- Web page: https://patentgrep.com/patent/US20210279058A1

## CPC

- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3005: {to perform operations for flow control}
- G06F 9/30054: {Unconditional branch instructions}
- G06F 9/30076: {to perform miscellaneous control operations, e.g. NOP}
- G06F 9/323: {for indirect branch instructions}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3854: {Instruction completion, e.g. retiring, committing or graduating}
- G06F 9/3858: {Result writeback, i.e. updating the architectural state or memory}
- G06F 9/3861: {Recovery, e.g. branch miss-prediction, exception handling (error detection or correction G06F11/00)}
- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 9/3012: {Organisation of register space, e.g. banked or distributed register file}
- G06F 21/71: to assure secure computing or processing of information
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In an embodiment, the present invention includes a processor having an execution logic to execute instructions and a control transfer termination (CTT) logic coupled to the execution logic. This logic is to cause a CTT fault to be raised if a target instruction of a control transfer instruction is not a CTT instruction. Other embodiments are described and claimed.

## Claims

### Claim 1

A processor comprising:
a fetch circuit to fetch instructions;
a decode circuit to decode the instructions, the decode circuit to decode a control transfer instruction into a decoded control transfer instruction and provide the decoded control transfer instruction to an execution circuit;
the execution circuit to execute decoded instructions including the decoded control transfer instruction, wherein state information associated with the decoded control transfer instruction is to indicate a transition from an idle state to a wait state; and
a retirement circuit to retire the decoded control transfer instruction,
wherein the processor is to raise an exception if a target instruction of the decoded control transfer instruction is not a control transfer termination instruction.

### Claim 2 (depends on 1)

The processor of claim 1, wherein the processor is to raise the exception if the target instruction is not an appropriate type of control transfer termination instruction for the state information.

### Claim 3 (depends on 2)

The processor of claim 2, wherein the processor is to not raise the exception if the target instruction is the appropriate type of control transfer termination instruction for the state information.

### Claim 4 (depends on 1)

The processor of claim 1, wherein the state information is a two-bit field value.

### Claim 5 (depends on 1)

The processor of claim 1, wherein the state information is to have a first value for the decoded control transfer instruction and a different value for a different decoded control transfer instruction.

### Claim 6 (depends on 1)

The processor of claim 1, further comprising a register to store a plurality of bits to indicate whether to enable determination as to whether the target instruction is a valid control transfer point.

### Claim 7 (depends on 1)

The processor of claim 1, wherein the control transfer instruction is a call instruction.

### Claim 8 (depends on 1)

The processor of claim 1, wherein the control transfer instruction is a branch instruction.

### Claim 9 (depends on 1)

The processor of claim 1, wherein the execution circuit is to execute floating point operations.

### Claim 10 (depends on 9)

The processor of claim 9, wherein the execution circuit is to execute single instruction multiple data operations.

### Claim 11 (depends on 1)

The processor of claim 1, further comprising a shared cache memory.

### Claim 12

A processor comprising:
a plurality of cores;
a shared cache memory coupled to the plurality of cores, wherein at least one of the plurality of cores comprises:
a fetch circuit to fetch instructions;
a decode circuit to decode the instructions, the decode circuit to decode a control transfer instruction into a decoded control transfer instruction and provide the decoded control transfer instruction to an execution circuit;
the execution circuit to execute decoded instructions including the decoded control transfer instruction, wherein state information associated with the decoded control transfer instruction is to indicate a transition from an idle state to a wait state; and
a retirement circuit to retire the decoded control transfer instruction,
wherein the processor is to raise an exception if a target instruction of the decoded control transfer instruction is not a control transfer termination instruction.

### Claim 13 (depends on 12)

The processor of claim 12, wherein the plurality of cores comprises symmetric cores.

### Claim 14 (depends on 13)

The processor of claim 13, wherein the processor comprises a system on chip.

### Claim 15 (depends on 12)

The processor of claim 12, wherein the execution circuit is to execute floating point operations.

### Claim 16 (depends on 15)

The processor of claim 15, wherein the execution circuit is to execute single instruction multiple data operations.

### Claim 17 (depends on 12)

The processor of claim 12, further comprising a shared cache memory.

### Claim 18

A machine-readable medium comprising instructions, which if performed by a machine, cause the machine to:
decode, in a processor, a control transfer instruction into a decoded control transfer instruction;
provide the decoded control transfer instruction to an execution circuit of the processor;
execute the decoded control transfer instruction, wherein state information associated with the decoded control transfer instruction is to indicate a transition from an idle state to a wait state;
retire the control transfer instruction in a retirement unit of the processor; and
raise an exception if a target instruction of the decoded control transfer instruction is not a control transfer termination instruction.

### Claim 19 (depends on 18)

The machine-readable medium of claim 18, further comprising instructions that cause the machine to raise the exception if the target instruction is not an appropriate type of control transfer termination instruction for the state information.

### Claim 20 (depends on 19)

The machine-readable medium of claim 19, further comprising instructions that cause the machine to not raise the exception if the target instruction is the appropriate type of control transfer termination instruction for the state information.
