发明授权
- 专利标题: Providing global translations with address space numbers
- 专利标题(中): 提供地址空间编号的全球翻译
-
申请号: US09596636申请日: 2000-06-19
-
公开(公告)号: US06604187B1公开(公告)日: 2003-08-05
- 发明人: Kevin J. McGrath , Stephan G. Meier
- 申请人: Kevin J. McGrath , Stephan G. Meier
- 主分类号: G06F1208
- IPC分类号: G06F1208
摘要:
A processor provides a register for storing an address space number (ASN). Operating system software may assign different ASNs to different processes. The processor may include a TLB to cache translations, and the TLB may record the ASN from the ASN register in a TLB entry being loaded. Thus, translations may be associated with processes through the ASNs. Generally, a TLB hit will be detected in an entry if the virtual address to be translated matches the virtual address tag and the ASN matches the ASN stored in the register. Additionally, the processor may use an indication from the translation table entries to indicate whether or not a translation is global. If a translation is global, then the ASN comparison is not included in detecting a hit in the TLB. Thus, translations which are used by more than one process may not occupy multiple TLB entries. Instead, a hit may be detected on the TLB entry storing the global translation even though the recorded ASN may not match the current ASN. In one embodiment, if ASNs are disabled, the TLB may be flushed on context switches. However, the indication from the translation table entries used to indicate that the translation is global may be used (when ASNs are disabled) by the TLB to selectively invalidate non-global translations on a context switch while not invalidating global translations.
信息查询