CACHE ADDRESS MAPPING METHOD AND RELATED DEVICE
A cache address mapping method and a related device. The method comprises: acquiring a binary file, wherein the binary file comprises a first hotspot code segment; acquiring alignment information of a second hotspot code segment, wherein the second hotspot code segment is a hotspot code segment that...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng ; fre |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | A cache address mapping method and a related device. The method comprises: acquiring a binary file, wherein the binary file comprises a first hotspot code segment; acquiring alignment information of a second hotspot code segment, wherein the second hotspot code segment is a hotspot code segment that has been loaded to the cache, and the alignment information comprises the set number of the latest cache set occupied by the second hotspot code segment after the second hotspot code segment is loaded to the cache; and carrying out an offset operation on the first hotspot code segment according to the alignment information, so that the first hotspot code segment is mapped to a cache set with a consecutive set number in the cache, and the cache set with the consecutive set number is adjacent to the latest cache set. By means of implementing the method, the problem of cache conflict miss in an N-way set associative structure can be solved without increasing the physical hardware overheads, and the cache hit rate can |
---|