retagged by
1,581 views
2 votes
2 votes
What is virtual indexed cache? How is it different from physical indexed cache? What is virtually indexed physical tagged cache? If possible point me to proper resources.
retagged by

2 Answers

1 votes
1 votes

The cache needs to know what memory areas have shadow copies in the cache. The address of the memory range contained in a cache line is called the tag of that cache line. A cache can put virtual addresses in the tag memory, so virtual addresses can be looked up directly in the cache without using the TLB (speed advantage on cache hit), or the cache could use physical addresses. Using physical addressing in the cache has the advantage that you don't need to flush the cache when the mapping between virtual and physical addresses changes (which happens on every task switch in many common operating systems).

Related questions

0 votes
0 votes
0 answers
4