One trivial cleanup from Jiang. Cherry-picking half of Emilio's patch set that has been reviewed.
Changes since v1: * Dropped 2 mprotect changes that Werrored on w32. * Dropped tcg optimize patch that broke arm32 host. r~ The following changes since commit 567d0a19c7998fa366598b83d5a6e5f0759d3ea9: Merge remote-tracking branch 'remotes/ehabkost/tags/x86-and-machine-pull-request' into staging (2017-10-10 13:25:46 +0100) are available in the git repository at: git://github.com/rth7680/qemu.git tags/pull-tcg-20171010 for you to fetch changes up to 8df8d529ed958de4e23dcbf38bd34eff1a4716f2: tcg/mips: delete commented out extern keyword. (2017-10-10 09:45:01 -0700) ---------------------------------------------------------------- Queued TCG patches ---------------------------------------------------------------- Emilio G. Cota (19): cputlb: bring back tlb_flush_count under !TLB_DEBUG tcg: fix corruption of code_time profiling counter upon tb_flush exec-all: fix typos in TranslationBlock's documentation translate-all: make have_tb_lock static cpu-exec: rename have_tb_lock to acquired_tb_lock in tb_find tcg/i386: constify tcg_target_callee_save_regs tcg/mips: constify tcg_target_callee_save_regs tcg: remove addr argument from lookup_tb_ptr tcg: consolidate TB lookups in tb_lookup__cpu_state exec-all: bring tb->invalid into tb->cflags translate-all: define and use DEBUG_TB_FLUSH_GATE exec-all: introduce TB_PAGE_ADDR_FMT translate-all: define and use DEBUG_TB_INVALIDATE_GATE translate-all: define and use DEBUG_TB_CHECK_GATE exec-all: extract tb->tc_* into a separate struct tc_tb tci: move tci_regs to tcg_qemu_tb_exec's stack tcg: take .helpers out of TCGContext util: move qemu_real_host_page_size/mask to osdep.h tcg: define TCG_HIGHWATER Jiang Biao (1): tcg/mips: delete commented out extern keyword. accel/tcg/tcg-runtime.h | 2 +- include/exec/cpu-all.h | 2 - include/exec/cpu-defs.h | 1 + include/exec/cputlb.h | 3 +- include/exec/exec-all.h | 19 +- include/exec/tb-lookup.h | 49 ++++ include/qemu/osdep.h | 6 + tcg/tcg-op.h | 4 +- tcg/tcg.h | 2 - accel/tcg/cpu-exec.c | 73 +++--- accel/tcg/cputlb.c | 17 +- accel/tcg/tcg-runtime.c | 34 +-- accel/tcg/translate-all.c | 96 +++++--- exec.c | 4 - target/alpha/translate.c | 2 +- target/arm/translate-a64.c | 4 +- target/arm/translate.c | 5 +- target/hppa/translate.c | 6 +- target/i386/translate.c | 17 +- target/mips/translate.c | 4 +- target/s390x/translate.c | 2 +- target/sh4/translate.c | 4 +- tcg/i386/tcg-target.inc.c | 2 +- tcg/mips/tcg-target.inc.c | 4 +- tcg/tcg-op.c | 4 +- tcg/tcg.c | 18 +- tcg/tci.c | 552 +++++++++++++++++++++++---------------------- util/pagesize.c | 18 ++ util/Makefile.objs | 1 + 29 files changed, 521 insertions(+), 434 deletions(-) create mode 100644 include/exec/tb-lookup.h create mode 100644 util/pagesize.c