# US 2010/0169615 A1 · Preloading Instructions from an Instruction Set Other than a Currently Executing Instruction Set

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

- Number: US 2010/0169615 A1
- Document ID: US20100169615A1
- Status: Published application
- Kind: A1
- Application number: 12/722,962
- Filed: 2010-03-12
- Published: 2010-07-01
- Earliest claimed: 2007-03-14
- Assignees: QUALCOMM Incorporated
- Inventors: Thomas Andrew Sartorius; Brian Michael Stempel; Rodney Wayne Smith
- Web page: https://patentgrep.com/patent/US20100169615A1

## CPC

- G06F 9/30196: {using decoder, e.g. decoder per instruction set, adaptable or programmable decoders}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/3802: {Instruction prefetching}
- G06F 9/382: {Pipelined decoding, e.g. using predecoding}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A preload instruction in a first instruction set is executed at a processor. The preload instruction causes the processor to preload one or more instructions into an instruction cache. The pre-loaded instructions are pre-decoded according to a second instruction set that is different from the first instruction set. The preloaded instructions are pre-decoded according to the second instruction set in response to an instruction set preload indicator (ISPI).

## Claims

### Claim 1

A method of preloading instructions, the method comprising:
at an instruction execution unit of a processor executing in a first instruction set operating mode associated with a first instruction set of a plurality of instruction sets, generating an instruction set preload indicator identifying a second instruction set of the plurality of instruction sets, wherein the first instruction set includes at least one instruction that is not included in the second instruction set;
executing, in accordance with the first instruction set operating mode, a preload instruction operative to preload an instruction into an instruction cache; and
pre-decoding the pre-loaded instruction in the instruction cache according to a second instruction set operating mode associated with the identified second instruction set.

### Claim 2 (depends on 1)

The method of claim 1, wherein the pre-loaded instruction is a single instruction that is pre-decoded at a pre-decoder of the processor, the method further comprising receiving the generated instruction set preload indicator at the pre-decoder of the processor.

### Claim 3 (depends on 1)

The method of claim 1, wherein the instruction set preload indicator comprises one or more bits of an address of a cache line into which instructions are preloaded.

### Claim 4 (depends on 3)

The method of claim 3, wherein the instruction set preload indicator comprises a least significant bit of the address of the cache line.

### Claim 5 (depends on 1)

The method of claim 1, wherein the instruction set preload indicator comprises one or more bits in an op code of the preload instruction.

### Claim 6 (depends on 1)

The method of claim 1, wherein the preload instruction is a unique instruction in the first instruction set that causes pre-loaded instructions to always be pre-decoded according to the second instruction set, and wherein generating the instruction set preload indicator comprises selecting the unique preload instruction.

### Claim 7 (depends on 1)

The method of claim 1, wherein generating the instruction set preload indicator comprises setting one or more bits in a register prior to executing the preload instruction.

### Claim 8 (depends on 1)

The method of claim 1 wherein the pre-loaded instruction is pre-decoded in according to the second instruction set operating mode in an interworking mode.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first instruction set is an ARM-type instruction set and the second instruction set is a Thumb-type instruction set, or wherein the first instruction set is a Thumb-type instruction set and the second instruction set is an ARM-type instruction set.

### Claim 10 (depends on 9)

The method of claim 9, wherein the at least one instruction not included in the Thumb-type instruction set is a swap (SWP) instruction, and wherein the at least one instruction not included in the ARM-type instruction set is an if-then (IT) instruction.

### Claim 11 (depends on 1)

The method of claim 1, wherein the first instruction set is associated with a first instruction length and wherein the second instruction set is associated with a second instruction length that is different than the first instruction length.

### Claim 12 (depends on 10)

The method of claim 10, wherein the first instruction length is a 32-bit length and wherein the second instruction length is a 16-bit length.

### Claim 13 (depends on 1)

The method of claim 1, wherein each instruction in the first instruction set has a first instruction length, and wherein the second instruction set includes a first instruction having the first instruction length and a second instruction having a second instruction length that is different than the first instruction length.

### Claim 14 (depends on 1)

The method of claim 1, wherein the first instruction set comprises fixed-size instructions and wherein the second instruction-set comprises variable-sized instructions.

### Claim 15

A processor, comprising:
a memory interface;
an instruction cache operative to store instructions and pre-decode information;
an instruction execution unit operative to retrieve the instructions when the processor is in a first instruction set operating mode and to generate an instruction set preload indicator; and
a pre-decoder, interposed between the instruction cache and the memory interface, operative to pre-decode pre-loaded instructions according to a second instruction set operating mode in response to the instruction set preload indicator,
wherein the first instruction set operating mode is associated with a first instruction set of the processor, wherein the second instruction set operating mode is associated with a second instruction set of the processor, and wherein the first instruction set has a first code density that is different than a second code density of the second instruction set.

### Claim 16 (depends on 15)

The processor of claim 15, wherein the instruction execution unit generates the instruction set preload indicator by setting one or more bits of an address of a cache line of the instruction cache into which instructions are preloaded.

### Claim 17 (depends on 16)

The processor of claim 16, wherein the address of the cache line is written to a general purpose register.

### Claim 18 (depends on 15)

The processor of claim 15, further comprising a register, wherein the instruction execution unit generates the instruction set preload indicator by setting one or more bits in the register.

### Claim 19 (depends on 15)

The processor of claim 15, further comprising a second cache memory interposed between the instruction cache and the memory interface, wherein the pre-decoder is interposed between the instruction cache and the second cache memory.

### Claim 20 (depends on 15)

The processor of claim 15, wherein the pre-decoder is operative to pre-decode instructions according to the second instruction set operating mode in an interworking mode.

### Claim 21

A computer-readable medium storing a preload instruction in a first instruction set, wherein the preload instruction is executable by a processor to cause the processor to preload instructions into an instruction cache, wherein the pre-loaded instructions are pre-decoded according to a second instruction set, and wherein the second instruction set includes at least one instruction that is not included in the first instruction set.

### Claim 22 (depends on 21)

The computer-readable medium of claim 21, wherein each of the pre-loaded instructions is pre-decoded according to the second instruction set.

### Claim 23 (depends on 21)

The computer-readable medium of claim 21, wherein the instruction set preload indicator is stored in a status register prior to execution of the preload instruction.

### Claim 24 (depends on 21)

The computer-readable medium of claim 21, wherein the first instruction set is an ARM instruction set and wherein the second instruction set is a Thumb instruction set, or wherein the first instruction set is a Thumb instruction set and wherein the second instruction set is an ARM instruction set.
