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<address@hidden>
---
target/s390x/cpu.h | 9 +++++----
target/s390x/helper.c | 10 ----------
target/s390x/interrupt.c | 39 +++++++++++++++++++++++++++++++++++++++
target/s390x/kvm.c | 16 ++++++++--------
target/s390x/misc_helper.c | 26 --------------------------
5 files changed, 52 insertions(+), 48 deletions(-)