# US 2004/0024993 A1 · Apparatus and method for maintaining a floating point data segment selector

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

- Number: US 2004/0024993 A1
- Document ID: US20040024993A1
- Status: Published application
- Kind: A1
- Application number: 10/212,911
- Filed: 2002-08-05
- Published: 2004-02-05
- Earliest claimed: 2002-08-05
- Assignees: Intel Corporation
- Inventors: Rajesh S. Parthasarathy
- Web page: https://patentgrep.com/patent/US20040024993A1

## CPC

- G06F 9/355: Indexed addressing
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30101: {Special purpose registers}
- G06F 9/30109: {having multiple operands in a single register}
- G06F 9/3824: {Operand accessing}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/384: {Register renaming}
- G06F 9/3854: {Instruction completion, e.g. retiring, committing or graduating}
- G06F 9/3856: {Reordering of instructions, e.g. using queues or age tags}
- 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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus and method for maintaining a floating point data segment selector are described. In one embodiment, the method includes the detection of a micro-operation of a memory referencing macro-instruction from one or more micro-operations to be retired during a system clock cycle. When the detected micro-operation triggers an event, a micro-code event handler is triggered to initiate an update of a floating point data segment selector information associated with the detected micro-operation. Otherwise, FDS update device is triggered to update the floating point data segment selector information associated with the detected micro-operation.

## Claims

### Claim 1

A method comprising:
detecting, during a system clock cycle retirement window, a micro-operation of a memory referencing macro-instruction;
when the detected micro-operation triggers an event, triggering a micro-code event handler to initiate an update of a floating point data segment selector information associated with the detected micro-operation; and
otherwise, triggering a device to update the floating point data segment selector information associated with the detected micro-operation.

### Claim 2 (depends on 1)

The method of claim 1, wherein detecting the memory referencing micro-operation further comprises:
determining one or more micro-operations to be retired during the system clock cycle retirement window;
detecting one or more load/store micro-operations from the one or more determined micro-operations within the retirement window; and
determining a final load/store micro-operation as the detected memory referencing micro-operation.

### Claim 3 (depends on 2)

The method of claim 2, wherein detecting the one or more load/store micro-operations further comprises:
detecting one or more micro-operations having a floating point data segment selector update modifier as the one or more detected load/store micro-operations.

### Claim 4 (depends on 1)

The method of claim 1, wherein triggering the micro-code event handler further comprises:
detecting an event triggered by the detected micro-operation;
once the event is detected, determining a physical data segment containing the floating point data segment selector information of the detected micro-operation; and
writing the physical segment into an event control register utilized by the microcode event handler.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
detecting, by the micro-code event handier, the physical segment written to the event control register;
reading, by the micro-code event handler, the floating point data segment selector information contained within the event control register; and
writing, by the micro-code event handler, the floating point data segment selector information to a corresponding portion of a floating point segment selector update register file.

### Claim 6 (depends on 1)

The method of claim 1, wherein triggering the device floating point data segment selector update further comprises:
asserting a floating point selector update flag;
reading a physical segment containing the floating point data segment selector information associated with the detected micro-operation; and
transmitting the physical segment to the floating point data segment selector update device.

### Claim 7 (depends on 6)

The method of claim 6, wherein asserting the floating point selector update flag further comprises:
determining whether the detected micro-operation has successfully retired;
once the detected micro-operation has successfully retired, asserting the floating point segment selector update flag; and
transmitting the floating point selector update flag to the floating point segment selector update device.

### Claim 8 (depends on 6)

The method of claim 6, wherein reading the physical segment further comprises:
determining a pointer to a memory segment containing data accessed by the memory referencing macro-instruction;
determining a base address of the detected memory segment; and
determining an offset from the base address indicating a location of the accessed data within the memory segment.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
detecting, by a floating point segment selector update device, a floating point segment update selector flag;
once detected, reading by the floating point segment selector update unit, floating point data segment selector information from a floating point data segment selector update register; and
once read, storing the floating point data segment selector information within a corresponding portion of a segment register file.

### Claim 10

The method of clam 1, further comprising:
detecting, by a floating point selector update device, a write to a floating point segment selector control register;
once detected, reading floating point data segment selector information from the floating point selector control register; and
storing the floating point data segment selector information within a corresponding portion of a register file.

### Claim 11

A computer readable storage medium including program instructions that direct a computer to function in a specified manner when executed by a processor, the program instructions comprising:
detecting, during a system clock cycle retirement window, a micro-operation of a memory referencing macro-instruction;
when the detected micro-operation triggers an event, triggering a micro-code event handler to initiate an update of a floating point data segment selector information associated with the detected micro-operation; and
otherwise, triggering a device to update the floating point data segment selector information associated with the detected micro-operation.

### Claim 12 (depends on 11)

The computer readable storage medium of claim 11, wherein detecting the memory referencing micro-operation further comprises:
determining one or more micro-operations to be retired during the system clock cycle retirement window;
detecting one or more load/store micro-operations from the one or more determined micro-operations within the retirement window; and
determining a final load/store micro-operation as the detected memory referencing micro-operation.

### Claim 13 (depends on 12)

The computer readable storage medium of claim 12, wherein detecting the one or more load/store micro-operations further comprising:
detecting one or more micro-operations having a floating point data segment selector update modifier as the one or more detected load/store micro-operations.

### Claim 14 (depends on 11)

The computer readable storage medium of claim 11, wherein triggering the micro-code event handler further comprises:
detecting an event triggered by the detected micro-operation;
once the event is detected, determining a physical data segment containing the floating point data segment selector information of the detected micro-operation; and
writing the physical segment into an event control register to trigger the microcode event handler.

### Claim 15 (depends on 14)

The computer readable storage medium of claim 14, further comprising:
detecting, by the micro-code event handler, the physical segment written to the event control register;
reading, by the micro-code event handler, the floating point data segment selector information contained within the event control register; and
writing, by the micro-code event handler, the floating point data segment selector information to a corresponding portion of a floating point segment selector update register file.

### Claim 16 (depends on 11)

The computer readable storage medium of claim 11, wherein triggering the device floating point data segment selector update further comprises:
asserting a floating point selector update flag;
reading a physical segment containing the floating point data segment selector information associated with the detected micro-operation; and
transmitting the physical segment to the floating point data segment selector update device.

### Claim 17 (depends on 16)

The computer readable storage medium of claim 16, wherein asserting the floating point selector update flag further comprises:
determining whether the detected micro-operation has successfully retired;
once the detected micro-operation has successfully retired, asserting the floating point segment selector update flag; and
transmitting the floating point selector update flag to the floating point segment selector update device.

### Claim 18 (depends on 16)

The computer readable storage medium of claim 16, wherein reading the physical segment further comprises:
determining a pointer to a memory segment containing data accessed by the memory referencing macro-instruction;
determining a base address of the detected memory segment; and
determining an offset from the base address indicating a location of the accessed data within the memory segment.

### Claim 19 (depends on 11)

The computer readable storage medium of claim 11, further comprising:
detecting, by a floating point segment selector update device, a floating point segment update selector flag;
once detected, reading by the floating point segment selector update unit, floating point data segment selector information from a floating point data segment selector update register; and
once read, storing the floating point data segment selector information within a corresponding portion of a segment register file.

### Claim 20

The computer readable storage medium of clam 12, further comprising:
detecting, by a floating point selector update device, a write to a floating point segment selector control register;
once detected, reading floating point data segment selector information from the floating point selector control register; and
storing the floating point data segment selector information within a corresponding portion of a register file.

### Claim 21

A system comprising:
a processor including micro-code to implement a micro-code event handler;
a floating point segment selector update device coupled to the processor via a bus to update floating point segment selector information associated with detected micro-operations of memory referencing macro-instructions;
a retirement unit, coupled to the processor via the bus, to detect, during a system clock cycle retirement window, a micro-operation of a memory referencing macro-instruction,
wherein when the detected micro-operation triggers an event, the retirement unit triggers the micro-code event handler to initiate an update of floating point segment selector information associated with the detected micro-operation, and otherwise, triggers the floating point update device to update the floating point segment selector information associated with the detected micro-operation.

### Claim 22 (depends on 21)

The system of claim 21,
wherein the retirement unit determines, according to an event triggered by the detected micro-operation, a physical data segment containing the data accessed by the memory referencing macro-instruction, and writes the physical segment into an event control register to trigger the micro-code event handler.

### Claim 23 (depends on 21)

The system of claim 21,
wherein the retirement unit further asserts a floating point segment selector update flag, reads a physical segment containing floating point segment selector information of the detected micro-operation, and transmits the physical segment to the floating point segment selector update device.

### Claim 24 (depends on 21)

The system of claim 21,
wherein the floating selector update device reads, according to a detected floating point update flag, floating point segment selector information from a floating point segment selector update register, and stores the floating point segment selector information within a corresponding portion of a register file.

### Claim 25 (depends on 21)

The system of claim 21,
wherein the floating selector update device reads, according to a write detected to a floating point segment selector control register, floating point segment selector information from the floating point segment selector control register, and stores the floating point segment selector information within a corresponding portion of a register file.
