arch-x86: Do not fixup faults in TLB
authorMatthew Poremba <matthew.poremba@amd.com>
Mon, 6 Apr 2020 18:09:32 +0000 (13:09 -0500)
committerMatthew Poremba <matthew.poremba@amd.com>
Thu, 9 Apr 2020 17:03:38 +0000 (17:03 +0000)
commit553d2079ad8687944cc1912217cecb09e30afba0
treef1c57ff91025768c6802e02961c5262dca44828f
parentd228a283c9039f25e2b046ee895950a0eefc28ba
arch-x86: Do not fixup faults in TLB

Faults in the TLB ought to cause a page walk. Force that by removing
the fixup in X86 TLB.

This fixes rare race conditions where a timing page walk is
intercepted by a TLB miss which fixes up the fault resulting in
double calls to allocateMem in Process class.

Change-Id: Iaef4d636cd2997144d8bc5012cd7c2a0a97102e5
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27507
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
src/arch/x86/tlb.cc