aboutsummaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2014-10-15 17:52:49 +0200
committerAlexander Graf <agraf@suse.de>2014-11-05 12:01:28 +0100
commitd4827355f6bccc3255950b952b7bcb1d15e55064 (patch)
treed3e50b831c1386a1b23c06bddde24843d561df05 /target-s390x
parentd5b4dc3b50175f0c34f3cf4b053e123fb37f5aed (diff)
downloadqemu-d4827355f6bccc3255950b952b7bcb1d15e55064.zip
qemu-d4827355f6bccc3255950b952b7bcb1d15e55064.tar.gz
qemu-d4827355f6bccc3255950b952b7bcb1d15e55064.tar.bz2
s390x: Fix sclp console input
When injecting an sclp console interrupt into the guest, we increase the PC by 4 for some reason. I have no idea why I put that code there, but it's clearly wrong. Remove the increment. This patch fixes sclp serial input for the ccw machine. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/interrupt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/target-s390x/interrupt.c b/target-s390x/interrupt.c
index 23a9114..1404d0a 100644
--- a/target-s390x/interrupt.c
+++ b/target-s390x/interrupt.c
@@ -22,9 +22,7 @@ void s390_sclp_extint(uint32_t parm)
kvm_s390_service_interrupt(parm);
} else {
S390CPU *dummy_cpu = s390_cpu_addr2state(0);
- CPUS390XState *env = &dummy_cpu->env;
- env->psw.addr += 4;
cpu_inject_ext(dummy_cpu, EXT_SERVICE, parm, 0);
}
}