# US 2019/0171461 A1 · Skip ahead allocation and retirement in dynamic binary translation based out-of-order processors

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

- Number: US 2019/0171461 A1
- Document ID: US20190171461A1
- Status: Published application
- Kind: A1
- Application number: 15/833,532
- Filed: 2017-12-06
- Published: 2019-06-06
- Earliest claimed: 2017-12-06
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Kimishkumar Patel; Ethan Schuchman
- Web page: https://patentgrep.com/patent/US20190171461A1

## CPC

- G06F 9/3838: {Dependency mechanisms, e.g. register scoreboarding}
- G06F 9/3856: {Reordering of instructions, e.g. using queues or age tags}
- G06F 9/384: {Register renaming}
- G06F 9/3887: {controlled by a single instruction for multiple data lanes [SIMD]}
- G06F 9/3888: {controlled by a single instruction for multiple threads [SIMT] in parallel}
- G06F 9/4552: {Involving translation to a different instruction set architecture, e.g. just-in-time translation in a JVM}
- G06F 9/3806: {using address prediction, e.g. return stack, branch history buffer}
- G06F 9/3867: {using instruction pipelines}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processor including a binary translator circuit to convert an instruction stream into an annotated instruction stream comprising an independent code tag identifying an independent code segment and a dependent code tag identifying a dependent code segment, a front end circuit to receive the annotated instruction stream in order, responsive to identifying the independent code tag in the annotated instruction stream, allocate instructions of the independent code segment associated with the independent code tag into a buffer, and responsive to identifying the dependent code tag, reserve a space for the dependent code segment associated with the dependent code tag, and an instruction execution circuit to execute the independent code segment prior to executing the dependent code segment.

## Claims

### Claim 1

A processor, comprising:
a binary translator circuit to convert an instruction stream into an annotated instruction stream comprising an independent code tag identifying an independent code segment and a dependent code tag identifying a dependent code segment;
a front end circuit to:
receive the annotated instruction stream in order;
responsive to identifying the independent code tag in the annotated instruction stream, allocate instructions of the independent code segment associated with the independent code tag into a buffer; and
responsive to identifying the dependent code tag, reserve a space for the dependent code segment associated with the dependent code tag; and
an instruction execution circuit to execute the independent code segment prior to executing the dependent code segment.

### Claim 2 (depends on 1)

The processor of claim 1, wherein the independent code tag comprises a beginning tag indicating a start instruction of the independent code segment and an end tag indicating a last instruction of the independent code segment, and wherein executing the independent code segment produces a value to be evaluated by a conditional instruction determining execution of the dependent code segment.

### Claim 3 (depends on 2)

The processor of claim 2, wherein the front end circuit is to:
responsive to identifying the beginning tag, sequentially allocate the instructions of the the independent code segment into the buffer; and
responsive to identifying the end tag, store a position value associated with the last instruction of the independent code segment in a first-in-first-out (FIFO) queue.

### Claim 4 (depends on 1)

The processor of claim 1, wherein the buffer comprises a list of positions for allocating instructions, and wherein the front end circuit is to:
responsive to identifying the dependent code tag, determine a length of the dependent code segment; and
reserve the space in the list, wherein the space comprises a number of positions corresponding to the length.

### Claim 5 (depends on 1)

The processor of claim 1, wherein the space is reserved for later allocation of instructions of the dependent code segment.

### Claim 6 (depends on 1)

The processor of claim 1, wherein the front end circuit is to:
responsive to executing the independent code segment to produce a value, evaluate a conditional instruction determining execution of the dependent code segment;
retrieve from a FIFO to determine a beginning position of the dependent code segment;
allocate, based on the value and the beginning position of the dependent code segment, instructions of the dependent code segment in the space reserved for the dependent code segment; and
execute the instructions of the dependent code segment.

### Claim 7 (depends on 6)

The processor of claim 6, wherein the front end circuit is to:
determine, based on the value, a number of instructions of the dependent code segment to be executed; and
responsive to determining that the number is smaller than the maximum length, store a position value associated with an instruction following the dependent code segment in a second FIFO.

### Claim 8 (depends on 6)

The processor of claim 6, further comprising an instruction retirement circuit to:
responsive to executing allocated instructions of the independent code segment, retire physical registers associated with the allocated instructions of the independent code segment;
responsive to executing allocated instructions of the dependent code segment, retire physical registers associated with the allocated instructions of the dependent code segment; and
responsive to retiring the physical registers of a last allocated instruction of the dependent code segment, retrieve from a second FIFO to determine a next allocated instruction and retire physical registers of the next allocated instruction.

### Claim 9 (depends on 1)

The processor of claim 1, wherein the buffer is at least one of a re-order buffer or a load/store buffer associated with the processor.

### Claim 10

A system comprising:
a memory; and
a processor, communicatively coupled to the memory, comprising:
a binary translator circuit to convert an instruction stream into an annotated instruction stream comprising an independent code tag identifying an independent code segment and a dependent code tag identifying a dependent code segment;
a front end circuit to:
receive the annotated instruction stream in order;
responsive to identifying the independent code tag in the annotated instruction stream, allocate instructions of the independent code segment associated with the independent code tag into a buffer; and
responsive to identifying the dependent code tag, reserve a space for the dependent code segment associated with the dependent code tag; and
an instruction execution circuit to execute the independent code segment prior to executing the dependent code segment.

### Claim 11 (depends on 10)

The system of claim 10, wherein the independent code tag comprises a beginning tag indicating a start instruction of the independent code segment and an end tag indicating a last instruction of the independent code segment, and wherein executing the independent code segment produces a value to be evaluated by a conditional instruction determining execution of the dependent code segment.

### Claim 12 (depends on 11)

The system of claim 11, wherein the front end circuit is to:
responsive to identifying the beginning tag, sequentially allocate the instructions of the the independent code segment into the buffer; and
responsive to identifying the end tag, store a position value associated with the last instruction of the independent code segment in a first-in-first-out (FIFO) queue.

### Claim 13 (depends on 10)

The system of claim 10, wherein the buffer comprises a list of positions for allocating instructions, and wherein the front end circuit is to:
responsive to identifying the dependent code tag, determine a length of the dependent code segment; and
reserve the space in the list, wherein the space comprises a number of positions corresponding to the length.

### Claim 14 (depends on 10)

The system of claim 10, wherein the space is reserved for later allocation of instructions of the dependent code segment.

### Claim 15 (depends on 10)

The system of claim 10, wherein the front end circuit is to:
responsive to executing the independent code segment to produce a value, evaluate a conditional instruction determining execution of the dependent code segment;
retrieve from a FIFO queue to determine a beginning position of the dependent code segment;
allocate, based on the value and the beginning position of the dependent code segment, instructions of the dependent code segment in the space reserved for the dependent code segment; and
execute the instructions of the dependent code segment.

### Claim 16 (depends on 15)

The system of claim 15, wherein the front end circuit is to:
determine, based on the value, a number of instructions of the dependent code segment to be executed; and
responsive to determining that the number is smaller than the maximum length, store a position value associated with an instruction following the dependent code segment in a second FIFO queue.

### Claim 17 (depends on 15)

The system of claim 15, further comprising an instruction retirement circuit to:
responsive to executing allocated instructions of the independent code segment, retire physical registers associated with the allocated instructions of the independent code segment;
responsive to executing allocated instructions of the dependent code segment, retire physical registers associated with the allocated instructions of the dependent code segment; and
responsive to retiring the physical registers of a last allocated instruction of the dependent code segment, retrieve from a second FIFO queue to determine a next allocated instruction and retire physical registers of the next allocated instruction.

### Claim 18 (depends on 10)

The system of claim 10, wherein the buffer is at least one of a re-order buffer or a load/store buffer associated with the processor.

### Claim 19

A method comprising:
converting, by a binary translator of a processor, an instruction stream into an annotated instruction stream comprising an independent code tag identifying an independent code segment and a dependent code tag identifying a dependent code segment, wherein execution of the dependent code segment depends on a result of execution of the independent code segment;
responsive to identifying the independent code tag in the annotated instruction stream, allocating, by the processor, instructions of the independent code segment associated with the independent code tag into a buffer;
responsive to identifying the dependent code tag, reserving, by the processor, a space for the dependent code segment associated with the dependent code tag; and
executing, by the processor, the independent code segment prior to executing the dependent code segment.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
responsive to executing the independent code segment, determining the result on which the dependent code segment depends;
retrieving from a FIFO queue to determine a beginning position of the dependent code segment;
allocating, based on the result and the beginning position of the dependent code segment, instructions of the dependent code segment in the space reserved for the dependent code segment; and
executing the instructions of the dependent code segment.
