diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-08 11:57:44 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2025-07-11 10:33:56 +0200 |
commit | b1180352f1c758ba4270cdaa3c41ceead3a43aad (patch) | |
tree | 08f7f4e8f2ff146eef260da2f3d9b61d20eec794 | |
parent | 40c94731c4495e78f0f7402890eb01a0f43a64ca (diff) | |
download | qemu-b1180352f1c758ba4270cdaa3c41ceead3a43aad.zip qemu-b1180352f1c758ba4270cdaa3c41ceead3a43aad.tar.gz qemu-b1180352f1c758ba4270cdaa3c41ceead3a43aad.tar.bz2 |
target/s390x: Expose s390_count_running_cpus() method
In order to simplify the next commit where s390_count_running_cpus()
is split out of s390_cpu_halt(), make its prototype public as a
preliminary step.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250708095746.12697-3-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r-- | target/s390x/cpu-system.c | 2 | ||||
-rw-r--r-- | target/s390x/s390x-internal.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/target/s390x/cpu-system.c b/target/s390x/cpu-system.c index 9b380e3..2fa8c4d 100644 --- a/target/s390x/cpu-system.c +++ b/target/s390x/cpu-system.c @@ -196,7 +196,7 @@ static bool disabled_wait(CPUState *cpu) (PSW_MASK_IO | PSW_MASK_EXT | PSW_MASK_MCHECK)); } -static unsigned s390_count_running_cpus(void) +unsigned s390_count_running_cpus(void) { CPUState *cpu; int nr_running = 0; diff --git a/target/s390x/s390x-internal.h b/target/s390x/s390x-internal.h index 6894f0a..145e472 100644 --- a/target/s390x/s390x-internal.h +++ b/target/s390x/s390x-internal.h @@ -238,6 +238,7 @@ uint32_t calc_cc(CPUS390XState *env, uint32_t cc_op, uint64_t src, uint64_t dst, /* cpu.c */ #ifndef CONFIG_USER_ONLY +unsigned int s390_count_running_cpus(void); unsigned int s390_cpu_halt(S390CPU *cpu); void s390_cpu_unhalt(S390CPU *cpu); void s390_cpu_system_init(Object *obj); |