diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-06 07:55:22 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-07 13:08:48 +0100 |
commit | 6d3910c9dbad5ff47c43214397f7afef9645ceb7 (patch) | |
tree | 478e4c8784bf1e408ed0938d253ec80f58207e1f /target/s390x/tcg | |
parent | 6233759ae15302e0ea60b8cda849fcd2c01d8098 (diff) | |
download | qemu-6d3910c9dbad5ff47c43214397f7afef9645ceb7.zip qemu-6d3910c9dbad5ff47c43214397f7afef9645ceb7.tar.gz qemu-6d3910c9dbad5ff47c43214397f7afef9645ceb7.tar.bz2 |
hw/s390x/sclp: Have sclp_service_call[_protected]() take S390CPU*
"hw/s390x/sclp.h" is a header used by target-agnostic objects
(such hw/char/sclpconsole[-lm].c), thus can not use target-specific
types, such CPUS390XState.
Have sclp_service_call[_protected]() take a S390CPU pointer, which
is target-agnostic.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231106114500.5269-3-philmd@linaro.org>
Diffstat (limited to 'target/s390x/tcg')
-rw-r--r-- | target/s390x/tcg/misc_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/tcg/misc_helper.c b/target/s390x/tcg/misc_helper.c index 56c7f00..6aa7907 100644 --- a/target/s390x/tcg/misc_helper.c +++ b/target/s390x/tcg/misc_helper.c @@ -102,7 +102,7 @@ uint64_t HELPER(stck)(CPUS390XState *env) uint32_t HELPER(servc)(CPUS390XState *env, uint64_t r1, uint64_t r2) { qemu_mutex_lock_iothread(); - int r = sclp_service_call(env, r1, r2); + int r = sclp_service_call(env_archcpu(env), r1, r2); qemu_mutex_unlock_iothread(); if (r < 0) { tcg_s390_program_interrupt(env, -r, GETPC()); |