mbox series

[v2,0/3] tcg: Convert TARGET_HAS_PRECISE_SMC to TCGCPUOps.precise_smc

Message ID 20250405155054.967307-1-richard.henderson@linaro.org (mailing list archive)
Headers show
Series tcg: Convert TARGET_HAS_PRECISE_SMC to TCGCPUOps.precise_smc | expand

Message

Richard Henderson April 5, 2025, 3:50 p.m. UTC
Supercedes: 20250404235624.67816-1-philmd@linaro.org
("[PATCH-for-10.1 0/2] tcg: Convert TARGET_HAS_PRECISE_SMC to TCGCPUOps::has_precise_smc field")

Amusingly, I was already working on this before Phil posted his patch,
as part of trying to compile tb-maint.c twice.  The major difference
between our two patches is I don't introduce a global variable; I read
from cpu->cc->tcg_ops->precice_smc when needed.


r~


Richard Henderson (3):
  accel/tcg: Add CPUState argument to page_unprotect
  accel/tcg: Add CPUState argument to tb_invalidate_phys_page_unwind
  accel/tcg: Convert TARGET_HAS_PRECISE_SMC to TCGCPUOps.precise_smc

 accel/tcg/tb-internal.h        |  3 ++-
 include/accel/tcg/cpu-ops.h    |  6 ++++++
 include/exec/poison.h          |  1 -
 include/user/page-protection.h |  2 +-
 target/i386/cpu.h              |  4 ----
 target/s390x/cpu.h             |  2 --
 accel/tcg/tb-maint.c           | 34 ++++++++++++++--------------------
 accel/tcg/user-exec.c          | 13 ++++++++-----
 linux-user/elfload.c           |  2 +-
 target/i386/tcg/tcg-cpu.c      |  1 +
 target/s390x/cpu.c             |  1 +
 11 files changed, 34 insertions(+), 35 deletions(-)