Does a CPU cache deal with physical or virtual addresses? And if it deals with virtual addresses, does that mean that it has be to emptied on context switch, assuming that the new thread is from another process.
This depends on the processor model. Some processors use both. (See “SPARC” in the “Virtual tags and vhints” section.)
You have tagged this question with x86-64, and an answer could be given for all x86-64 models to date, but I am not sure whether the architecture specification specifies whether processors conforming to the specification must use one or the other for cache information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With