# US 2012/0260067 A1 · Microprocessor that performs x86 isa and arm isa machine language program instructions by hardware translation into microinstructions executed by common execution pipeline

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

- Number: US 2012/0260067 A1
- Document ID: US20120260067A1
- Status: Published application
- Kind: A1
- Application number: 13/224,310
- Filed: 2011-09-01
- Published: 2012-10-11
- Earliest claimed: 2011-04-07
- Assignees: VIA Technologies, Inc.
- Inventors: G. Glenn Henry; Terry Parks; Rodney E. Hooker
- Web page: https://patentgrep.com/patent/US20120260067A1

## CPC

- G06F 9/441: {Multiboot arrangements, i.e. selecting an operating system to be loaded}
- G06F 9/265: {by address selection on input of storage}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/30072: {to perform conditional operations, e.g. using predicates or guards}
- G06F 9/30076: {to perform miscellaneous control operations, e.g. NOP}
- G06F 9/30105: {Register structure}
- G06F 9/30123: {according to context, e.g. thread buffers}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3017: {Runtime instruction translation, e.g. macros}
- G06F 9/30174: {for non-native instruction set, e.g. Javabyte, legacy code}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/30196: {using decoder, e.g. decoder per instruction set, adaptable or programmable decoders}
- G06F 9/3802: {Instruction prefetching}
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F 9/4403: {Processor initialisation}
- G06F 15/82: data or demand driven
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A microprocessor includes a hardware instruction translator that translates x86 ISA and ARM ISA machine language program instructions into microinstructions, which are encoded in a distinct manner from the x86 and ARM instructions. An execution pipeline executes the microinstructions to generate x86/ARM-defined results. The microinstructions are distinct from the results generated by the execution of the microinstructions by the execution pipeline. The translator directly provides the microinstructions to the execution pipeline for execution. Each time the microprocessor performs one of the x86 ISA and ARM ISA instructions, the translator translates it into the microinstructions. An indicator indicates either x86 or ARM as a boot ISA. After reset, the microprocessor initializes its architectural state, fetches its first instructions from a reset address, and translates them all as defined by the boot ISA. An instruction cache caches the x86 and ARM instructions and provides them to the translator.

## Claims

### Claim 1

A microprocessor, comprising:
a hardware instruction translator, that translates instructions of x86 instruction set architecture (ISA) machine language programs and Advanced RISC Machines (ARM) ISA machine language programs into microinstructions defined by a microinstruction set of the microprocessor, wherein the microinstructions are encoded in a distinct manner from the manner in which the instructions defined by the instruction sets of the x86 ISA and ARM ISA are encoded; and
an execution pipeline, coupled to the hardware instruction translator, wherein the execution pipeline executes the microinstructions to generate results defined by the x86 ISA and ARM ISA instructions;
wherein the hardware instruction translator directly provides the microinstructions to the execution pipeline for execution to generate the results defined by the x86 ISA and ARM ISA instructions.

### Claim 2 (depends on 1)

The microprocessor of claim 1, wherein the microinstructions provided by the hardware instruction translator to the execution pipeline are distinct from the results generated by the execution of the microinstructions by the execution pipeline.

### Claim 3 (depends on 1)

The microprocessor of claim 1, wherein the microinstructions are provided by the hardware instruction translator to the execution pipeline for execution rather than the microinstructions being results of the execution pipeline.

### Claim 4 (depends on 1)

The microprocessor of claim 1, wherein each time the microprocessor performs one of the x86 ISA and ARM ISA instructions, the hardware instruction translator translates the ISA instruction into the microinstructions for execution by the execution pipeline.

### Claim 5 (depends on 1)

The microprocessor of claim 1, wherein the hardware instruction translator further comprises:
a microinstruction cache, that caches the microinstructions;
wherein the execution pipeline receives the microinstructions from the microinstruction cache rather than from the hardware instruction translator when the microinstructions are present in the microinstruction cache.

### Claim 6 (depends on 1)

The microprocessor of claim 1, wherein the execution pipeline is absent the ability to directly execute the x86 ISA and ARM ISA instructions.

### Claim 7 (depends on 1)

The microprocessor of claim 1, further comprising:
an instruction mode indicator, that indicates whether the microprocessor is currently fetching and translating x86 ISA or ARM ISA instructions and executing the microinstructions translated therefrom.

### Claim 8 (depends on 1)

The microprocessor of claim 1, wherein the hardware instruction translator comprises:
a first synthesized logic block of Boolean gates that translates the x86 ISA instructions into the microinstructions; and
a second synthesized logic block of Boolean gates that translates the ARM ISA instructions into the microinstructions.

### Claim 9 (depends on 1)

The microprocessor of claim 1, wherein the hardware instruction translator receives an instruction mode input that identifies whether the ISA instructions are x86 ISA or ARM ISA instructions.

### Claim 10 (depends on 9)

The microprocessor of claim 9, wherein the hardware instruction translator comprises:
Boolean logic gates, comprising a plurality of transistors, that translate into the microinstructions the ISA instructions as either x86 ISA instructions or ARM ISA instructions based on the instruction mode input.

### Claim 11 (depends on 10)

The microprocessor of claim 10, wherein the Boolean logic gates provide the microinstructions for a first subset of the x86 ISA and ARM ISA instructions, wherein the hardware instruction translator further comprises:
a read-only memory (ROM), manufactured in a semiconductor die that embodies the microprocessor, wherein the ROM provides ROM instructions used to generate the microinstructions for a second subset of the x86 ISA and ARM ISA instructions.

### Claim 12 (depends on 1)

The microprocessor of claim 1, wherein the microprocessor comprises:
at least first and second processing cores, each comprising an instance of the hardware instruction translator and the execution pipeline.

### Claim 13

A method for operating a microprocessor that includes an indicator that indicates either the x86 instruction set architecture (ISA) or the Advanced RISC Machines (ARM) ISA, the method comprising:
determining which of the x86 ISA and the ARM ISA the indicator indicates;
translating machine language instructions according to the x86 ISA into microinstructions when the indicator indicates the x86 ISA and translating machine language instructions according to the ARM ISA into microinstructions when the indicator indicates the ARM ISA, wherein the microinstructions are defined by a microinstruction set of the microprocessor and are encoded in a distinct manner from the manner in which the instructions defined by the instruction sets of the x86 ISA and ARM ISA are encoded, wherein said translating is performed by a hardware instruction translator of the microprocessor; and
executing the microinstructions to generate results defined by the x86 ISA when the indicator indicates the x86 ISA and executing the microinstructions to generate results defined by the ARM ISA when the indicator indicates the ARM ISA, wherein said executing is performed by an execution pipeline of the microprocessor coupled to the hardware instruction translator.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
directly providing the microinstructions from the hardware instruction translator to the execution pipeline for execution.

### Claim 15 (depends on 13)

The method of claim 13, wherein the microinstructions translated by the hardware instruction translator are distinct from the results generated by the execution of the microinstructions by the execution pipeline.

### Claim 16 (depends on 13)

The method of claim 13, wherein the results generated by said executing are not the microinstructions translated by the hardware instruction translator.

### Claim 17 (depends on 13)

The method of claim 13, wherein each time the microprocessor performs one of the x86 ISA and ARM ISA instructions, the hardware instruction translator performs said translating and the execution pipeline performs said executing.

### Claim 18

A microprocessor, comprising:
a plurality of registers, that holds an architectural state of the microprocessor;
an indicator, that indicates a boot instruction set architecture (ISA) of the microprocessor as either the x86 ISA or the Advanced RISC Machines (ARM) ISA;
a hardware instruction translator, that translates x86 ISA instructions and ARM ISA instructions into microinstructions, wherein the hardware instruction translator translates, as instructions of the boot ISA, the initial ISA instructions that the microprocessor fetches from architectural memory space after receiving a reset signal;
an execution pipeline, coupled to the hardware instruction translator, wherein the execution pipeline executes the microinstructions to generate results defined by the x86 ISA and ARM ISA instructions; and
wherein in response to the reset signal, the microprocessor initializes its architectural state in the plurality of registers as defined by the boot ISA prior to fetching the initial ISA instructions.

### Claim 19 (depends on 18)

The microprocessor of claim 18, wherein the indicator comprises a default value in microcode of the microprocessor.

### Claim 20 (depends on 19)

The microprocessor of claim 19, further comprising:
a fuse, which may be blown to invert the default value in the microcode.

### Claim 21 (depends on 19)

The microprocessor of claim 19, wherein the default value in the microcode is modifiable by a microcode patch applied prior to the microprocessor fetching its initial ISA instruction from architectural memory space after being reset.

### Claim 22 (depends on 18)

The microprocessor of claim 18, wherein the indicator comprises a bit in a register of the microprocessor that has a default value in response to the reset signal.

### Claim 23 (depends on 18)

The microprocessor of claim 18, wherein the indicator comprises an external input to the microprocessor.

### Claim 24 (depends on 18)

The microprocessor of claim 18, wherein in response to the reset signal the microprocessor fetches the initial ISA instructions from architectural memory space at an address defined by the boot ISA.

### Claim 25

A method, comprising:
detecting that a reset of a microprocessor has been signaled, wherein said detecting is performed by the microprocessor;
determining, in response to said detecting that a reset of the microprocessor has been signaled, which of the x86 instruction set architecture (ISA) and the Advanced RISC Machines (ARM) ISA an indicator of the microprocessor indicates is a boot ISA of the microprocessor, wherein said determining is performed by the microprocessor;
initializing an architectural state of the microprocessor as defined by the boot ISA, wherein said initializing is performed by the microprocessor;
translating into microinstructions the initial ISA instructions fetched from architectural memory space by the microprocessor after the reset as instructions of the boot ISA, wherein said translating is performed by a hardware instruction translator of the microprocessor; and
executing the microinstructions to generate results defined by the boot ISA, wherein said executing is performed by an execution pipeline of the microprocessor coupled to the hardware instruction translator.

### Claim 26 (depends on 25)

The method of claim 25, further comprising:
fetching the initial ISA instructions after the reset at an address defined by the boot ISA.

### Claim 27

A microprocessor, comprising:
an instruction cache, that caches instructions of x86 instruction set architecture (ISA) machine language programs and Advanced RISC Machines (ARM) ISA machine language programs;
a hardware instruction translator, coupled to the instruction cache, wherein the hardware instruction translator receives the x86 ISA and ARM ISA instructions from the instruction cache and responsively translates them into microinstructions defined by a microinstruction set of the microprocessor, wherein the microinstructions are encoded in a distinct manner from the manner in which the instructions defined by the instruction sets of the x86 ISA and ARM ISA are encoded; and
an execution pipeline, coupled to the hardware instruction translator, wherein the execution pipeline executes the microinstructions to generate results defined by the x86 ISA and ARM ISA instructions.

### Claim 28 (depends on 27)

The microprocessor of claim 27, further comprising:
an instruction mode indicator, that indicates either the x86 ISA or the ARM ISA; and
an instruction address register, that holds a memory address related to the next ISA machine language program instruction to be performed;
wherein microprocessor updates the instruction address register according to semantics of the ISA indicated by the instruction mode indicator;
wherein the microprocessor fetches the ISA instructions from the instruction cache based on the memory address held in the instruction address register.

### Claim 29 (depends on 28)

The microprocessor of claim 28, wherein the hardware instruction translator comprises:
a read-only memory (ROM), that holds ROM instructions used to generate at least a portion of the microinstructions for provision to the execution pipeline; and
a microinstruction address register, that holds an address pointing to the next ROM instruction within the ROM, wherein the microinstruction address register is distinct from the architectural instruction address register.

### Claim 30

A microprocessor, comprising:
a hardware instruction translator, that translates instructions of x86 instruction set architecture (ISA) machine language programs and Advanced RISC Machines (ARM) ISA machine language programs into microinstructions defined by a microinstruction set of the microprocessor, wherein the microinstructions are encoded in a distinct manner from the manner in which the instructions defined by the instruction sets of the x86 ISA and ARM ISA are encoded; and
an execution pipeline, coupled to the hardware instruction translator, wherein the execution pipeline executes the microinstructions to generate results defined by the x86 ISA and ARM ISA instructions;
wherein each time the microprocessor performs one of the x86 ISA and ARM ISA instructions, the hardware instruction translator translates the ISA instruction into the microinstructions for execution by the execution pipeline.

### Claim 31

A microprocessor, comprising:
a hardware instruction translator, that translates instructions of x86 instruction set architecture (ISA) machine language programs and Advanced RISC Machines (ARM) ISA machine language programs into microinstructions defined by a microinstruction set of the microprocessor, wherein the microinstructions are encoded in a distinct manner from the manner in which the instructions defined by the instruction sets of the x86 ISA and ARM ISA are encoded; and
an execution pipeline, coupled to the hardware instruction translator, wherein the execution pipeline executes the microinstructions to generate results defined by the x86 ISA and ARM ISA instructions;
wherein the microinstructions provided by the hardware instruction translator to the execution pipeline are distinct from the results generated by the execution of the microinstructions by the execution pipeline.
