]> git.ipfire.org Git - thirdparty/qemu.git/commit
cputlb: Fix tlb_vaddr_to_host
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 4 Sep 2019 00:03:12 +0000 (17:03 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Oct 2019 09:35:23 +0000 (10:35 +0100)
commit7f445c8c7aad0d8fca7d99a48cc8118dc82aa0f3
treedf65b6ff7d381e365ad418d0d7ee0efdf182bd3a
parentbb8e3ea6fa8f616678133c9e8c8c3bf232c179ec
cputlb: Fix tlb_vaddr_to_host

Using uintptr_t instead of target_ulong meant that, for 64-bit guest
and 32-bit host, we truncated the guest address comparator and so may
not hit the tlb when we should.

Fixes: 4811e9095c0
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c