]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
s390x: Fix sclp console input
authorAlexander Graf <agraf@suse.de>
Wed, 15 Oct 2014 15:52:49 +0000 (17:52 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Nov 2014 11:01:28 +0000 (12:01 +0100)
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>
target-s390x/interrupt.c

index 23a9114f5ac229de2ef2233219150fb6d0da5c45..1404d0afdd75f535b8eaf5495ac5ce9f722c03f2 100644 (file)
@@ -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);
     }
 }