diff options
author | David Hildenbrand <david@redhat.com> | 2017-11-30 17:27:29 +0100 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2017-12-14 17:56:54 +0100 |
commit | 8d2f850a5ab7579a852f23b28273940a47dfd7ff (patch) | |
tree | ee84f4d36dd39e1c75bf3c6758030e7fac8485d8 /target/s390x/cpu.h | |
parent | 9879003bb82c1351fa84feb81aa1bbcf7442ca84 (diff) | |
download | qemu-8d2f850a5ab7579a852f23b28273940a47dfd7ff.zip qemu-8d2f850a5ab7579a852f23b28273940a47dfd7ff.tar.gz qemu-8d2f850a5ab7579a852f23b28273940a47dfd7ff.tar.bz2 |
s390x/tcg: introduce and use s390_program_interrupt()
Allows to easily convert more callers of program_interrupt() and to
easily introduce new exceptions without forgetting about the cpu state
reset.
Use s390_program_interrupt() in places where we already had the same
pattern. We will later get rid of program_interrupt().
RA != 0 checks are already done behind the scenes.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20171130162744.25442-2-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target/s390x/cpu.h')
-rw-r--r-- | target/s390x/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h index 4db8b54..3340fdf 100644 --- a/target/s390x/cpu.h +++ b/target/s390x/cpu.h @@ -720,6 +720,8 @@ void s390_io_interrupt(uint16_t subchannel_id, uint16_t subchannel_nr, /* automatically detect the instruction length */ #define ILEN_AUTO 0xff void program_interrupt(CPUS390XState *env, uint32_t code, int ilen); +void s390_program_interrupt(CPUS390XState *env, uint32_t code, int ilen, + uintptr_t ra); /* service interrupts are floating therefore we must not pass an cpustate */ void s390_sclp_extint(uint32_t parm); |