]> git.proxmox.com Git - mirror_qemu.git/commit - accel/tcg/cputlb.c
accel/tcg: Avoid caching overwritten tlb entries
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Jun 2018 20:07:08 +0000 (13:07 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 2 Jul 2018 15:05:16 +0000 (08:05 -0700)
commit68fea038553039e53d425c6399202d13f1e5cfb8
treed6367ef3e1689b7e7c227385df3815f534b49564
parent4b1a3e1e34ad971b58783d4a24448ccbf5bd8fd4
accel/tcg: Avoid caching overwritten tlb entries

When installing a TLB entry, remove any cached version of the
same page in the VTLB.  If the existing TLB entry matches, do
not copy into the VTLB, but overwrite it.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c