target/s390x: Rework program_interrupt() and related functions
commite3cfd926f779ddaff52336431d30519e9386e962
authorThomas Huth <thuth@redhat.com>
Mon, 24 Jul 2017 08:52:48 +0000 (24 10:52 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 25 Jul 2017 07:17:42 +0000 (25 09:17 +0200)
tree428f2287404cfb0dda0f028c63e783edea16f84b
parent3d6722051bc7876832003215533f36df9f33cc56
target/s390x: Rework program_interrupt() and related functions

misc_helper.c won't be compiled with --disable-tcg anymore, but we
still need the program_interrupt() function in that case. Move it
to interrupt.c instead, and refactor it to re-use the code from
trigger_pgm_exception() (for TCG) and enter_pgmcheck() (for KVM,
which now got renamed to kvm_s390_program_interrupt() for
clarity).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1500886370-14572-4-git-send-email-thuth@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu.h
target/s390x/helper.c
target/s390x/interrupt.c
target/s390x/kvm.c
target/s390x/misc_helper.c