unicorn/qemu/accel/tcg
Peter Maydell 6543f9ea26
tcg: Define and use new tlb_hit() and tlb_hit_page() functions
The condition to check whether an address has hit against a particular
TLB entry is not completely trivial. We do this in various places, and
in fact in one place (get_page_addr_code()) we have got the condition
wrong. Abstract it out into new tlb_hit() and tlb_hit_page() inline
functions (one for a known-page-aligned address and one for an
arbitrary address), and use them in all the places where we had the
condition correct.

This is a no-behaviour-change patch; we leave fixing the buggy
code in get_page_addr_code() to a subsequent patch

Backports commit 334692bce7f0653a93b8d84ecde8c847b08dec38 from qemu
2018-07-03 19:21:36 -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 tcg: Define and use new tlb_hit() and tlb_hit_page() functions 2018-07-03 19:21:36 -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