unicorn/qemu/accel/tcg
Peter Maydell 0c6311f8cc
accel/tcg: Correct "is this a TLB miss" check in get_page_addr_code()
In commit 71b9a45330fe220d1 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.

Backports commit e4c967a7201400d7f76e5847d5b4c4ac9e2566e0 from qemu
2018-07-03 19:23:25 -04:00
..
atomic_template.h tcg: Use GEN_ATOMIC_HELPER_FN for opposite endian atomic add 2018-05-14 08:07:49 -04:00
cpu-exec-common.c icount: fix cpu_restore_state_from_tb for non-tb-exit cases 2018-04-11 20:05:40 -04:00
cpu-exec.c icount: fix cpu_restore_state_from_tb for non-tb-exit cases 2018-04-11 20:05:40 -04:00
cputlb.c accel/tcg: Correct "is this a TLB miss" check in get_page_addr_code() 2018-07-03 19:23:25 -04:00
Makefile.objs tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
softmmu_template.h tcg: Define and use new tlb_hit() and tlb_hit_page() functions 2018-07-03 19:21:36 -04:00
tcg-runtime-gvec.c tcg: Fix out-of-line generic vector compares 2018-04-07 23:05:19 -04:00
tcg-runtime.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
tcg-runtime.h tcg: Introduce atomic helpers for integer min/max 2018-05-14 08:06:42 -04:00
translate-all.c icount: fix cpu_restore_state_from_tb for non-tb-exit cases 2018-04-11 20:05:40 -04:00
translate-all.h tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
translate-common.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
translator.c translator: merge max_insns into DisasContextBase 2018-05-11 13:59:17 -04:00