qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 31/84] tcg: Add page_bits and page_mask to TCGContext


From: Anton Johansson
Subject: Re: [PATCH 31/84] tcg: Add page_bits and page_mask to TCGContext
Date: Mon, 15 May 2023 14:39:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0


On 5/3/23 09:22, Richard Henderson wrote:
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

Signed-off-by: Richard Henderson<richard.henderson@linaro.org>
---
  include/tcg/tcg.h                |  5 +++++
  accel/tcg/translate-all.c        |  4 ++++
  tcg/aarch64/tcg-target.c.inc     |  6 +++---
  tcg/arm/tcg-target.c.inc         | 10 +++++-----
  tcg/i386/tcg-target.c.inc        |  6 +++---
  tcg/loongarch64/tcg-target.c.inc |  4 ++--
  tcg/mips/tcg-target.c.inc        |  6 +++---
  tcg/ppc/tcg-target.c.inc         | 14 +++++++-------
  tcg/riscv/tcg-target.c.inc       |  4 ++--
  tcg/s390x/tcg-target.c.inc       |  4 ++--
  tcg/sparc64/tcg-target.c.inc     |  4 ++--
  11 files changed, 38 insertions(+), 29 deletions(-)
Reviewed-by: Anton Johansson <anjo@rev.ng>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]