# US 5,708,843 A · Method and apparatus for handling code segment violations in a computer system

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

- Number: US 5,708,843 A
- Document ID: US5708843A
- Status: Granted
- Kind: A
- Application number: 08/544,558
- Filed: 1995-10-18
- Granted: 1998-01-13
- Earliest claimed: 1995-10-18
- Assignees: Intel Corporation
- Inventors: Jeffrey M. Abramson; Haitham Akkary; Andrew F. Glew; Glenn J. Hinton; Kris G. Konigsfeld; Rohit Vidwans
- Web page: https://patentgrep.com/patent/US5708843A

## CPC

- G06F 9/3865: {using deferred exception handling, e.g. exception flags}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/3824: {Operand accessing}
- G06F 9/3856: {Reordering of instructions, e.g. using queues or age tags}
- G06F 9/38585: {with result invalidation, e.g. nullification}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory operation is issued in a processor. Upon detecting both that the memory operation produces a code segment violation and that the memory operation is blocked at retirement, a blocking signal is produced to block a bus access responsive to the memory operation. A second signal signifies that the memory operation completed.

## Claims

### Claim 1

An apparatus for handling code segment violations in a pipelined processor comprising:
detection logic that provides one or more code segment violation detection signals;
circuitry that provides a blocked-at-retirement signal; and
combinatorial logic responsive to the one or more code segment violation detection signals and the blocked-at-retirement signal that provides a block signal which blocks a bus access from occurring in response to a memory operation, the combinatorial logic also providing a data valid signal which indicates the memory operation has completed.

### Claim 2 (depends on 1)

The apparatus of claim 1 wherein the combinatorial logic comprises an AND gate.

### Claim 3 (depends on 1)

The apparatus of claim 1 wherein the pipelined processor comprises a reorder buffer which includes the code segment violation detection logic.

### Claim 4 (depends on 1)

The apparatus of claim 1 further wherein the pipelined processor further comprises a data cache unit, with the block signal being coupled to the data cache unit and the data valid signal being coupled to the reorder buffer.

### Claim 5

A processor comprising:
a reorder buffer which maintains a sequential listing of micro-operations, the reorder buffer providing one or more code segment violation signals;
a data cache unit;
a memory order buffer, the one or more code segment violation signals being coupled to the memory order buffer and combined with an at-retirement signal to provide a first intermediate signal, the first intermediate signal being logically ORed with other blocking signals to provide a second intermediate signal, the first intermediate result also being logically ORed with a write-back valid signal to provide a third intermediate signal, the second intermediate signal being coupled to the data cache unit to selectively disable bus requests, and the third intermediate signal being coupled to the reorder buffer to indicate that a memory operation has completed.
