tcg: Add page_bits and page_mask to TCGContext
Disconnect guest page size from TCG compilation. While this could be done via exec/target_page.h, we want to cache the value across multiple memory access operations, so we might as well initialize this early. The changes within tcg/ are entirely mechanical: sed -i s/TARGET_PAGE_BITS/s->page_bits/g sed -i s/TARGET_PAGE_MASK/s->page_mask/g Reviewed-by:Anton Johansson <anjo@rev.ng> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
Showing
- accel/tcg/translate-all.c 4 additions, 0 deletionsaccel/tcg/translate-all.c
- include/tcg/tcg.h 5 additions, 0 deletionsinclude/tcg/tcg.h
- tcg/aarch64/tcg-target.c.inc 3 additions, 3 deletionstcg/aarch64/tcg-target.c.inc
- tcg/arm/tcg-target.c.inc 5 additions, 5 deletionstcg/arm/tcg-target.c.inc
- tcg/i386/tcg-target.c.inc 3 additions, 3 deletionstcg/i386/tcg-target.c.inc
- tcg/loongarch64/tcg-target.c.inc 2 additions, 2 deletionstcg/loongarch64/tcg-target.c.inc
- tcg/mips/tcg-target.c.inc 3 additions, 3 deletionstcg/mips/tcg-target.c.inc
- tcg/ppc/tcg-target.c.inc 7 additions, 7 deletionstcg/ppc/tcg-target.c.inc
- tcg/riscv/tcg-target.c.inc 2 additions, 2 deletionstcg/riscv/tcg-target.c.inc
- tcg/s390x/tcg-target.c.inc 2 additions, 2 deletionstcg/s390x/tcg-target.c.inc
- tcg/sparc64/tcg-target.c.inc 2 additions, 2 deletionstcg/sparc64/tcg-target.c.inc
Loading
Please register or sign in to comment