4 ms·
Fault simply means that the TLB has a cache miss and then traps to the OS to handle the miss. "Fault" is a concept of what is happening a "trap" is what happens
by hacknat 11y ago
Fault simply means that the TLB has a cache miss and then traps to the OS to handle the miss. "Fault" is a concept of what is happening a "trap" is what happens.
Edit:
x86 does have a register for defining the location of page tables that it will walk, the it would trap on a miss if the PTE is missing. Idk, if Linux uses this register or not or uses a software defined TLB, or some kind of hybrid approach.
- moyix 11y ago> x86 does have a register for defining the location of page tables that it will walk, the it would trap on a miss if the PTE is missing. Idk, if Linux uses this register or not or uses a software defined TLB, or some kind of hybrid approach. 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.
- deleted 11y ago[deleted]
- hacknat 11y agoIf you read what I wrote you'll see that I said this.