qemu/target/s390x
Peter Maydell 4f7b1ecba8 target: Set TCGCPUOps::cpu_exec_halt to target's has_work implementation
Currently the TCGCPUOps::cpu_exec_halt method is optional, and if it
is not set then the default is to call the CPUClass::has_work
method (which has an identical function signature).

We would like to make the cpu_exec_halt method mandatory so we can
remove the runtime check and fallback handling.  In preparation for
that, make all the targets which don't need special handling in their
cpu_exec_halt set it to their cpu_has_work implementation instead of
leaving it unset.  (This is every target except for arm and i386.)

In the riscv case this requires us to make the function not
be local to the source file it's defined in.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2024-07-11 11:41:34 +01:00
..
kvm gdbstub: move enums into separate header 2024-06-24 10:14:17 +01:00
tcg target/s390x: Use s390_skeys_get|set() helper 2024-06-19 12:42:03 +02:00
arch_dump.c target/s390x/arch_dump: use correct byte order for pid 2024-06-24 08:13:58 +02:00
cpu_features_def.h meson: rename .inc.h files to .h.inc 2020-08-21 06:18:35 -04:00
cpu_features_def.h.inc s390x: correct typos 2024-02-21 08:16:58 +03:00
cpu_features.c target/s390x: flag te and cte as deprecated 2024-05-10 08:34:29 +02:00
cpu_features.h target/s390x: report deprecated-props in cpu-model-expansion reply 2024-05-10 08:34:20 +02:00
cpu_models_sysemu.c target/s390x: report deprecated-props in cpu-model-expansion reply 2024-05-10 08:34:20 +02:00
cpu_models_user.c target/s390x: split sysemu part of cpu models 2021-07-07 14:01:59 +02:00
cpu_models.c target/s390x: Add a CONFIG switch to disable legacy CPUs 2024-06-24 08:22:30 +02:00
cpu_models.h target/s390x/cpu_models: Make kvm_s390_apply_cpu_model() return boolean 2024-04-30 06:21:47 +02:00
cpu-dump.c target/s390x: Prefer fast cpu_env() over slower CPU QOM cast macro 2024-02-06 10:27:50 +01:00
cpu-param.h target: Define TCG_GUEST_DEFAULT_MO in 'cpu-param.h' 2024-04-26 15:31:37 +02:00
cpu-qom.h target: Move ArchCPUClass definition to 'cpu.h' 2023-11-07 13:08:48 +01:00
cpu-sysemu.c s390x/cpu topology: resetting the Topology-Change-Report 2023-10-20 07:16:53 +02:00
cpu.c target: Set TCGCPUOps::cpu_exec_halt to target's has_work implementation 2024-07-11 11:41:34 +01:00
cpu.h target/s390x: Record separate PER bits in TB flags 2024-05-29 12:41:15 +02:00
diag.c target/s390x: Use env_archcpu() in handle_diag_308() 2023-11-07 12:13:27 +01:00
gdbstub.c gdbstub: Change gdb_get_reg_cb and gdb_set_reg_cb 2024-02-28 09:09:49 +00:00
gen-features.c target/s390x: AP-passthrough for PV guests 2023-09-12 11:35:46 +02:00
helper.c target/s390x: Prefer fast cpu_env() over slower CPU QOM cast macro 2024-02-06 10:27:50 +01:00
helper.h target/s390x: Simplify per_ifetch, per_check_exception 2024-05-29 12:41:15 +02:00
interrupt.c target/s390x: move kvm files into kvm/ 2021-07-07 14:01:59 +02:00
ioinst.c hw/s390x: Move KVM specific PV from hw/ to target/s390x/kvm/ 2023-07-10 15:34:23 +02:00
Kconfig target/s390x: Add a CONFIG switch to disable legacy CPUs 2024-06-24 08:22:30 +02:00
machine.c target/s390x: Constify VMState in machine.c 2023-12-29 11:17:30 +11:00
meson.build meson: Rename target_softmmu_arch -> target_system_arch 2023-10-07 19:03:07 +02:00
mmu_helper.c target/s390x: Use s390_skeys_get|set() helper 2024-06-19 12:42:03 +02:00
s390x-internal.h target/s390x: Fix float_comp_to_cc() prototype 2023-03-24 11:46:08 +01:00
sigp.c s390x: move s390_cpu_addr2state to target/s390x/sigp.c 2024-05-10 15:45:15 +02:00
trace-events target/s390x: Use s390_skeys_get|set() helper 2024-06-19 12:42:03 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00