On 1/6/26 3:19 PM, Philippe Mathieu-Daudé wrote:
By inverting the 'tcg_enabled()' check in s390_cpu_set_psw()
we can let the compiler elide the s390_cpu_recompute_watchpoints()
call when TCG is not available. Move it to a TCG specific
file to avoid compiling dead code on KVM. This restricts the
WatchPoint API calls to TCG.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
target/s390x/s390x-internal.h | 1 -
target/s390x/tcg/tcg_s390x.h | 4 +++
target/s390x/cpu.c | 30 ++++++++++----------
target/s390x/helper.c | 38 -------------------------
target/s390x/tcg/debug.c | 53 +++++++++++++++++++++++++++++++++++
target/s390x/tcg/meson.build | 3 ++
6 files changed, 75 insertions(+), 54 deletions(-)
create mode 100644 target/s390x/tcg/debug.c
Reviewed-by: Pierrick Bouvier <[email protected]>