# US 2013/0159679 A1 · Providing Hint Register Storage For A Processor

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

- Number: US 2013/0159679 A1
- Document ID: US20130159679A1
- Status: Published application
- Kind: A1
- Application number: 13/330,914
- Filed: 2011-12-20
- Published: 2013-06-20
- Earliest claimed: 2011-12-20
- Inventors: James E. McCormick, JR.; Dale Morris
- Web page: https://patentgrep.com/patent/US20130159679A1

## CPC

- G06F 9/3013: {according to data content, e.g. floating-point registers, address registers}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/30134: {Register stacks; shift registers}
- G06F 9/30167: {of immediate specifier, e.g. constants}
- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 12/0862: with prefetch
- G06F 12/0837: with software control, e.g. non-cacheable data
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 2212/1041: Resource optimization
- G06F 2212/6028: Prefetching based on hints or prefetch instructions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment, the present invention includes a method for receiving a data access instruction and obtaining an index into a data access hint register (DAHR) register file of a processor from the data access instruction, reading hint information from a register of the DAHR register file accessed using the index, and performing the data access instruction using the hint information. Other embodiments are described and claimed.

## Claims

### Claim 1

A processor comprising:
at least one execution unit to execute instructions;
a register file having a first plurality of registers each to store an operand for use in execution of an instruction; and
a hint register file having a second plurality of registers each to store a set of fields each to store a hint value for use by a logic of the processor.

### Claim 2 (depends on 1)

The processor of claim 1, wherein the at least one execution unit is to access one of the second plurality of registers based on an immediate value of an instruction.

### Claim 3 (depends on 2)

The processor of claim 2, wherein the immediate value corresponds to an index value into the hint register file.

### Claim 4 (depends on 2)

The processor of claim 2, wherein the processor is to execute a data access instruction using a hint value present in the accessed one of the second plurality of registers.

### Claim 5 (depends on 1)

The processor of claim 1, further comprising a hint stack to store a plurality of sets of hint value collections, each set associated with a function.

### Claim 6 (depends on 5)

The processor of claim 5, wherein the processor is to store one of the plurality of sets of hint value collections into the hint stack responsive to a call to a first function.

### Claim 7 (depends on 6)

The processor of claim 6, wherein the processor is to load default hint values into the hint register file responsive to the call to the first function.

### Claim 8 (depends on 6)

The processor of claim 6, wherein the processor is to load the one of the plurality of sets of hint value collections from the hint stack to the hint register file responsive to a return from the first function.

### Claim 9 (depends on 1)

The processor of claim 1, wherein the processor is to execute a register write instruction to store hint information into one of the second plurality of registers.

### Claim 10 (depends on 9)

The processor of claim 9, wherein the hint information is encoded as an immediate value associated with the register write instruction.

### Claim 11

A method comprising:
receiving a data access instruction in a logic of a processor and obtaining an index into a data access hint register (DAHR) register file of the processor from the data access instruction, the DAHR register file including a plurality of data access hint registers;
reading hint information from a data access hint register of the DAHR register file accessed using the index; and
performing the data access instruction using the hint information.

### Claim 12 (depends on 11)

The method of claim 11, further comprising receiving a register write instruction having first hint information encoded into immediate data associated with the register write instruction.

### Claim 13 (depends on 12)

The method of claim 12, further comprising storing the first hint information into a first data access hint register of the DAHR register file responsive to the register write instruction.

### Claim 14 (depends on 11)

The method of claim 11, further comprising storing data requested by the data access instruction into a temporal portion of a first cache memory of the processor responsive to the data access instruction and the hint information.

### Claim 15 (depends on 11)

The method of claim 11, wherein the index corresponds to an immediate value associated with the data access instruction.

### Claim 16 (depends on 15)

The method of claim 15, wherein the immediate value corresponds to a legacy hint value, and reading the hint information from the accessed register of the DAHR register file to obtain the legacy hint value.

### Claim 17 (depends on 11)

The method of claim 11, further comprising storing hint information in the plurality of data access hint registers into a hint stack of the processor responsive to a function call.

### Claim 18 (depends on 17)

The method of claim 17, further comprising thereafter storing default hint information into the plurality of data access hint registers.

### Claim 19

A system comprising:
a processor including a logic to receive a first instruction including an immediate data and to access at least one hint field of a first hint register of a hint register file using the immediate data, wherein the logic is to optimize execution of the first instruction according to a value of the at least one hint field, the processor further including the hint register file and a general purpose register file including a plurality of registers each to store an operand for an instruction; and
a dynamic random access memory (DRAM) coupled to the processor.

### Claim 20 (depends on 19)

The system of claim 19, wherein the processor further comprises a hint stack to store a plurality of sets of hint value collections, each set associated with a function.

### Claim 21 (depends on 19)

The system of claim 19, wherein the processor is to store data obtained via a data access instruction in a temporal portion of a selected level of a cache memory of the processor responsive to a value of a first hint field of the first hint register.

### Claim 22 (depends on 21)

The system of claim 21, wherein the processor is to store the data obtained via the data access instruction with a selected cache coherency state responsive to a value of a second hint field of the first hint register.

### Claim 23 (depends on 19)

The system of claim 19, wherein the processor is to access the first hint register including default hint values responsive to an instruction of legacy code that includes an immediate value corresponding to a first hint value.

### Claim 24 (depends on 23)

The system of claim 23, wherein the first hint value is stored in a hint field of the first hint register, the first hint register indexed by the immediate value.

### Claim 25 (depends on 19)

The system of claim 19, wherein the processor is to prevent prefetching of data to be obtained by a data access instruction responsive to a value of a third hint field of the first hint register.

### Claim 26

A machine-readable storage medium having stored thereon instructions, which if performed by a machine cause the machine to perform a method comprising:
receiving a first instruction of an instruction set architecture (ISA), the first instruction including an identifier of a first hint register of a hint register file of a processor and further including a first value; and
storing the first value in the first hint register responsive to the first instruction, the first value including a plurality of individual values each corresponding to a hint field of the first hint register.

### Claim 27 (depends on 26)

The machine-readable storage medium of claim 26, wherein the method further comprises:
receiving a second instruction of the ISA, the second instruction to perform an operation according to an opcode of the second instruction, the second instruction having a data portion to index the first hint register of the hint register file.

### Claim 28 (depends on 27)

The machine-readable storage medium of claim 27, wherein the method further comprises performing the operation according to at least one of the individual values stored in the first hint register.

### Claim 29 (depends on 27)

The machine-readable storage medium of claim 27, wherein the first value comprises an immediate data of the first instruction, and the data portion of the second instruction comprises an immediate data of the second instruction.
