by userbinator · 4y ago · 0 comments
The idea of software-refilled TLBs always seemed strange to me; a TLB is a cache, yet I don't know of any widely-used CPU with data/instruction caches which need to be explicitly managed in software. ARM, the most common RISC now, uses a hardware TLB.
It would probably be quite feasible to do actually with an architecture that has a simple page table like a single physically contiguous hash table, but x86 style arbitrary radix page tables seem like they would be prohibitive to snoop.
About the only improvement I can think of for software-filled TLBs is to have features that allow said software to always be hot, loaded into fast on-die memory, not subject to being pushed out of a cache.
If an ISA defined a very small contained set of operations for TLB miss to program page table walking / TLB refill state machines that allowed the OS to define that behavior without taking an architectural interrupt that would be very cool. I suspect the hardware cost and complexity is not considered worthwhile though.
There is still a lot of recent research focusing on the design of SPM hardware and management approaches in the embedded and real-time/predictable systems communities.