qemu-patch-raspberry4/accel
Peter Maydell e4c967a720 accel/tcg: Correct "is this a TLB miss" check in get_page_addr_code()
In commit 71b9a45330 we changed the condition we use
to determine whether we need to refill the TLB in
get_page_addr_code() to
    if (unlikely(env->tlb_table[mmu_idx][index].addr_code !=
                 (addr & (TARGET_PAGE_MASK | TLB_INVALID_MASK)))) {

This isn't the right check (it will falsely fail if the
input addr happens to have the low bit corresponding to
TLB_INVALID_MASK set, for instance). Replace it with a
use of the new tlb_hit() function, which is the correct test.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20180629162122.19376-3-peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2018-07-02 08:02:20 -07:00
..
kvm kvm: Delete the slot if and only if the KVM_MEM_READONLY flag is changed 2018-06-28 19:05:31 +02:00
stubs tcg: Fix --disable-tcg build breakage 2018-07-02 13:42:05 +01:00
tcg accel/tcg: Correct "is this a TLB miss" check in get_page_addr_code() 2018-07-02 08:02:20 -07:00
accel.c accel: use g_strsplit for parsing accelerator names 2018-05-09 00:13:38 +02:00
Makefile.objs kvm: add memory encryption context 2018-03-13 12:04:03 +01:00