# US 9,354,885 B1 · Selective suppression of instruction cache-related directory access

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

- Number: US 9,354,885 B1
- Document ID: US9354885B1
- Status: Granted
- Kind: B1
- Application number: 14/990,984
- Filed: 2016-01-08
- Granted: 2016-05-31
- Earliest claimed: 2016-01-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Michael K. Gschwind; Valentina Salapura
- Web page: https://patentgrep.com/patent/US9354885B1

## CPC

- G06F 9/3802: {Instruction prefetching}
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 2212/1024: Latency reduction
- G06F 2212/1028: Power efficiency
- G06F 2212/452: Instruction code
- G06F 2212/502: using adaptive policy
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Processing of an instruction fetch from an instruction cache is provided, which includes: determining whether the next instruction fetch is in a same cache line of the instruction cache as a last instruction fetch; and based, at least in part, on determining that the next instruction fetch is in the same cache line, suppressing for the next instruction fetch one or more instruction cache-related directory accesses, and forcing for the next instruction an address match signal for the same cache line. The suppressing may include generating a known-to-hit signal where the next fetch is in the same cache line, and the last fetch is not a branch instruction, and issuing an instruction cache hit where a cache line segment of the same cache line having the next instruction has a valid validity bit, the valid validity bit having been retrieved and maintained based on a most-recent, instruction cache-directory-accessed fetch.

## Claims

### Claim 1

A method of processing an instruction fetch from an instruction cache, the method comprising:
determining for a next instruction fetch whether the next instruction fetch is in a same cache line of the instruction cache as a last instruction fetch from the instruction cache;
based, at least in part, on determining that the next instruction fetch is in the same cache line, suppressing for the next instruction fetch one or more instruction cache-related directory accesses, and forcing for the next instruction fetch an address match signal for the same cache line; and
wherein suppressing the one or more instruction cache-directory accesses comprises suppressing for the next instruction fetch an instruction directory (IDIR) lookup associated with the instruction cache, and suppressing for the next instruction fetch an instruction address translation directory lookup associated with the instruction cache.

### Claim 2 (depends on 1)

The method of claim 1, wherein the suppressing comprises generating a known-to-hit signal where the next instruction fetch is in the same cache line and the last instruction fetch is not a branch instruction, and issuing an instruction cache hit where a cache line segment of the same cache line comprising the next instruction has a valid validity bit associated therewith, the valid validity bit having been retrieved and maintained based on a most-recent, instruction cache-directory-accessed fetch for the same cache line.

### Claim 3 (depends on 2)

The method of claim 2, further comprising, where the next instruction fetch is in the same cache line and the last instruction is a branch instruction, ascertaining whether the branch instruction is to a location within the same cache line of the instruction cache, and if so, proceeding with generating the known-to-hit signal.

### Claim 4 (depends on 2)

The method of claim 2, further comprising refraining from the suppressing where there has been an invalidation action against the same cache line, causing the same cache line to no longer be valid, the invalidation action resulting in the known-to-hit signal being negated.

### Claim 5 (depends on 1)

The method of claim 1, further comprising refraining from the suppressing where there has been an invalidation action against the same cache line, which causes the same cache line to no longer be valid, the invalidation action result in a known-to-hit signal being negated.

### Claim 6 (depends on 1)

The method of claim 1, wherein the same cache line comprises multiple cache line segments, each cache line segment comprising multiple instructions, and wherein the method further comprises maintaining validity information for each cache line segment of the multiple cache line segments based on a most-recent, instruction cache-directory-accessed fetch for the same cache line.

### Claim 7 (depends on 6)

The method of claim 6, wherein the suppressing comprises generating a known-to-hit signal based, at least in part, on the determining that the next instruction fetch is in the same cache line, and wherein the method further comprises issuing a cache line hit for the next instruction fetch where the separate validity bit for the cache line segment comprising the next instruction is valid and the known-to-hit signal has been generated, without performing for the next instruction fetch the one or more instruction cache-related directory accesses.

### Claim 8 (depends on 6)

The method of claim 6, wherein maintaining the validity information comprises maintaining separate validity bits for each cache line segment in a cycle-boundary latch of an instruction cache complex comprising the instruction cache.

### Claim 9 (depends on 1)

The method of claim 1, wherein the suppressing further comprises suppressing for the next instruction fetch an address-compare looking for a match between the instruction directory lookup and the instruction address translation directory lookup.

### Claim 10

A system for processing an instruction fetch from an instruction cache, the system comprising:
a memory; and
a processor communicatively coupled to the memory, where the system performs a method comprising:
determining for a next instruction fetch whether the next instruction fetch in a same cache line of the instruction cache as a last instruction fetch from the instruction cache;
based, at least in part, on determining that the next instruction fetch is in the same cache line, suppressing for the next instruction fetch one or more instruction cache-related directory accesses, and forcing for the next instruction fetch an address match signal for the same cache line
wherein suppressing the one or more instruction cache-directory accesses comprises suppressing for the next instruction fetch an instruction directory (IDIR) lookup associated with the instruction cache, and suppressing for the next instruction fetch an instruction address translation directory lookup associated with the instruction cache.

### Claim 11 (depends on 10)

The system of claim 10, wherein the suppressing comprises generating a known-to-hit signal where the next instruction fetch is in the same cache line and the last instruction fetch is not a branch instruction, and issuing an instruction cache hit where a cache line segment of the same cache line comprising the next instruction has a valid validity bit associated therewith, the valid validity bit having been retrieved and maintained based on a most-recent, instruction cache-directory-accessed fetch for the same cache line.

### Claim 12 (depends on 11)

The system of claim 11, further comprising, where the next instruction fetch is in the same cache line and the last instruction is a branch instruction, ascertaining whether the branch instruction is to a location within the same cache line of the instruction cache, and if so, proceeding with generating the known-to-hit signal.

### Claim 13 (depends on 11)

The system of claim 11, further comprising refraining from the suppressing where there has been an invalidation action against the same cache line, causing the same cache line to no longer be valid, the invalidation action resulting in the known-to-hit signal being negated.

### Claim 14 (depends on 10)

The system of claim 10, wherein the same cache line comprises multiple cache line segments, each cache line segment comprising multiple instructions, and wherein the system further maintains validity information for each cache line segment of the multiple cache line segments based on a most-recent, instruction cache-directory-accessed fetch for the same cache line.

### Claim 15 (depends on 14)

The system of claim 14, wherein the suppressing comprises generating a known-to-hit signal based, at least in part, on the determining that the next instruction fetch is in the same cache line, and wherein the system further issues a cache line hit for the next instruction fetch where the separate validity hit for the cache line segment comprising the next instruction is valid and the known-to-hit signal has been generated, without performing for the next instruction fetch the one or more instruction cache-related directory accesses.

### Claim 16

A computer program product for processing an instruction fetch from an instruction cache, computer program product comprising:
a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions being executable by a processing circuit to cause the processing circuit to perform a method comprising:
determining for a next instruction fetch whether the next instruction fetch is in a same cache line of the instruction cache as a last instruction fetch from the instruction cache;
based, at least in part, on determining that the next instruction fetch is in the same cache line, suppressing for the next instruction fetch one or more instruction cache-related directory accesses, and forcing for the next instruction fetch an address match signal for the same cache line; and
wherein suppressing the one or more instruction cache-directory accesses comprises suppressing for the next instruction fetch an instruction directory (IDIR) lookup associated with the instruction cache, and suppressing for the next instruction fetch an instruction address translation directory lookup associated with the instruction cache.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the suppressing comprises generating a known-to-hit signal where the next instruction fetch is in the same cache line and the last instruction fetch is not a branch instruction, and issuing an instruction cache hit where a cache line segment of the same cache line comprising the next instruction has a valid validity bit associated therewith, the valid validity bit having been retrieved and maintained based on a most-recent, instruction cache-directory-accessed fetch for the same cache line.

### Claim 18 (depends on 17)

The computer program product of claim 17, further comprising, where the next instruction fetch is in the same cache line and the last instruction is a branch instruction, ascertaining whether the branch instruction is to a location within the same cache line of the instruction cache, and if so, proceeding with generating the known-to-hit signal.

### Claim 19 (depends on 17)

The computer program product of claim 17, further comprising refraining from the suppressing where there has been an invalidation action against the same cache line, causing the same cache line to no longer be valid, the invalidation action resulting in the known-to-hit signal being negated.
