Why does intel use a virtual index physical tagged cache and not VIVT or PIPT?

牧云@^-^@ 提交于 2020-07-18 06:06:42

问题


I am not sure, but if i remember right intel uses a VIPT cache, i would like to know the reason of this choice, why is it better than VIVT or PIPT, what advantages does it procure and maybe what disadvantages. Thank you.


回答1:


The exact design decisions are probably not published, but in general the benefits for VIPT are :

  1. Virtual indexing means you can start reading the set from the cache before (or in parallel with) looking up the translation in the TLB. This means that the common case lookup would be done much faster than a physically indexed cache, where you can only lookup the cache after you have the translation.
  2. Physical tagging allows you to avoid aliasing - both in cases where a single virtual address maps to several physical ones (e.g. different threads overlapping in virtual addr ragne), or multiple virtual addresses map to the same physical line (e.g. inter-thread communication). Both cases may cause loss of coherency in a virtually tagged cache and would require complicated mechanisms for detection.


来源:https://stackoverflow.com/questions/22570526/why-does-intel-use-a-virtual-index-physical-tagged-cache-and-not-vivt-or-pipt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!