]> git.proxmox.com Git - mirror_qemu.git/commit
cputlb: update TLB entry/index after tlb_fill
authorEmilio G. Cota <cota@braap.org>
Sat, 9 Feb 2019 16:27:45 +0000 (11:27 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 11 Feb 2019 16:52:44 +0000 (08:52 -0800)
commit6d967cb86d5b4a60ba15b497126b621ce9ca6609
treea2b37a81e8ae1f0764ecdafef2c652a889e5d628
parentae56a2ff92ac73782279abf8857585c34b15f509
cputlb: update TLB entry/index after tlb_fill

We are failing to take into account that tlb_fill() can cause a
TLB resize, which renders prior TLB entry pointers/indices stale.
Fix it by re-doing the TLB entry lookups immediately after tlb_fill.

Fixes: 86e1eff8bc ("tcg: introduce dynamic TLB sizing", 2019-01-28)
Reported-by: Max Filippov <jcmvbkbc@gmail.com>
Tested-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <20190209162745.12668-3-cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
accel/tcg/softmmu_template.h