All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] accel/tcg: Restrict WatchPoint API to TCG
@ 2026-01-06 23:19 Philippe Mathieu-Daudé
  2026-01-06 23:19 ` [PATCH 1/5] target/i386: " Philippe Mathieu-Daudé
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-01-06 23:19 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Richard Henderson, qemu-ppc, Pierrick Bouvier,
	qemu-riscv, qemu-s390x, qemu-arm, Philippe Mathieu-Daudé

Hi,

This series is related to single binary, where we want
to build compilation units once. Headers using the
'CONFIG_USER_ONLY' definition are "poisoned", except if
we duplicate the meson source set, in that case we define
COMPILING_SYSTEM_VS_USER and CONFIG_USER_ONLY is no more
poisoned.

Looking at the watchpoint API, CONFIG_USER_ONLY is only
used to avoid stubs, so it can easily be reworked to avoid
the need of duplicated source set.

Since here, we also restrict the API to TCG, and unify it
in a single header: "accel/tcg/watchpoint.h", since it is
distinct to the BreakPoint API which can be used by hardware
accelerators.

Philippe Mathieu-Daudé (5):
  target/i386: Restrict WatchPoint API to TCG
  target/ppc: Restrict WatchPoint API to TCG
  target/s390x: Restrict WatchPoint API to TCG
  accel/tcg: Un-inline WatchPoint API user-emulation stubs
  accel/tcg: Unify watchpoint API

 MAINTAINERS                         |   1 -
 include/accel/tcg/cpu-ops.h         |  45 +-----------
 include/accel/tcg/watchpoint.h      |  57 ++++++++++++++++
 include/exec/breakpoint.h           |  10 ---
 include/exec/watchpoint.h           |  41 -----------
 include/hw/core/cpu.h               |   3 +-
 target/arm/internals.h              |   2 +-
 target/ppc/internal.h               |   2 +-
 target/riscv/debug.h                |   2 +-
 target/s390x/s390x-internal.h       |   1 -
 target/s390x/tcg/tcg_s390x.h        |   4 ++
 accel/tcg/cputlb.c                  |   1 +
 accel/tcg/tcg-accel-ops.c           |   2 +-
 accel/tcg/user-exec-stub.c          |  32 +++++++++
 accel/tcg/watchpoint.c              |  83 +++++++++++++++++++++-
 system/watchpoint.c                 | 102 ----------------------------
 target/arm/debug_helper.c           |   2 +-
 target/arm/tcg/mte_helper.c         |   2 +-
 target/arm/tcg/sve_helper.c         |   2 +-
 target/i386/cpu.c                   |   6 +-
 target/i386/machine.c               |   2 +-
 target/i386/tcg/system/bpt_helper.c |   2 +-
 target/ppc/cpu.c                    |  83 +---------------------
 target/ppc/cpu_init.c               |   2 +-
 target/ppc/watchpoint.c             |  93 +++++++++++++++++++++++++
 target/riscv/cpu_helper.c           |   2 +-
 target/riscv/debug.c                |   2 +-
 target/s390x/cpu.c                  |  30 ++++----
 target/s390x/helper.c               |  40 +----------
 target/s390x/tcg/debug.c            |  53 +++++++++++++++
 target/s390x/tcg/excp_helper.c      |   2 +-
 target/s390x/tcg/mem_helper.c       |   1 +
 target/xtensa/dbg_helper.c          |   2 +-
 system/meson.build                  |   1 -
 target/ppc/meson.build              |   1 +
 target/s390x/tcg/meson.build        |   3 +
 36 files changed, 366 insertions(+), 353 deletions(-)
 create mode 100644 include/accel/tcg/watchpoint.h
 delete mode 100644 include/exec/watchpoint.h
 delete mode 100644 system/watchpoint.c
 create mode 100644 target/ppc/watchpoint.c
 create mode 100644 target/s390x/tcg/debug.c

-- 
2.52.0



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-01-09 23:56 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06 23:19 [PATCH 0/5] accel/tcg: Restrict WatchPoint API to TCG Philippe Mathieu-Daudé
2026-01-06 23:19 ` [PATCH 1/5] target/i386: " Philippe Mathieu-Daudé
2026-01-08  0:54   ` Pierrick Bouvier
2026-01-08  7:10   ` Zhao Liu
2026-01-06 23:19 ` [PATCH 2/5] target/ppc: " Philippe Mathieu-Daudé
2026-01-08  0:55   ` Pierrick Bouvier
2026-01-08  8:33   ` Chinmay Rath
2026-01-06 23:19 ` [PATCH 3/5] target/s390x: " Philippe Mathieu-Daudé
2026-01-07  5:28   ` Thomas Huth
2026-01-08  0:56   ` Pierrick Bouvier
2026-01-06 23:19 ` [PATCH 4/5] accel/tcg: Un-inline WatchPoint API user-emulation stubs Philippe Mathieu-Daudé
2026-01-08  0:57   ` Pierrick Bouvier
2026-01-06 23:19 ` [PATCH 5/5] accel/tcg: Unify watchpoint API Philippe Mathieu-Daudé
2026-01-08  0:58   ` Pierrick Bouvier
2026-01-08  7:14   ` Zhao Liu
2026-01-09 23:56 ` [PATCH 0/5] accel/tcg: Restrict WatchPoint API to TCG Richard Henderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.