X86: Clear out duplicate TLB entries when adding a new one.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 24 Apr 2012 07:48:41 +0000 (00:48 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 24 Apr 2012 07:48:41 +0000 (00:48 -0700)
commit64bf90dca3b050591386cfc09121a54733f57706
tree4a065a40c0f2cbcefc9d4f6f524e7b56b20da9f1
parent74ca8a3cd023bce0e919d09b494ee1e6c672a2a2
X86: Clear out duplicate TLB entries when adding a new one.

It's possible for two page table walks to overlap which will go in the same
place in the TLB's trie. They would land on top of each other, so this change
adds some code which detects if an address already matches an entry and if so
throws away the new one.
src/arch/x86/tlb.cc