by moyix · 10y ago · 0 comments
TLB management is done in hardware on x86. TLB misses don't generate exceptions, they just trigger page table walks in hardware, and then if the page table walk fails (e.g. because of a non-present page table entry) it triggers a CPU exception (page fault) that the OS can then handle.
Things like MIPS use a software-managed TLB that works roughly as you describe, though.