aboutsummaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-02-14 07:23:50 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-02-14 07:23:50 +0000
commitee0dc6d3937e10d9813ede4710bdcb9a4687d96f (patch)
tree73fd9386dbbb86683400171711aa1ce43b5a8457 /target-s390x
parentb5937f297819bec5bf704dda1df9807fc7f0a766 (diff)
downloadqemu-ee0dc6d3937e10d9813ede4710bdcb9a4687d96f.zip
qemu-ee0dc6d3937e10d9813ede4710bdcb9a4687d96f.tar.gz
qemu-ee0dc6d3937e10d9813ede4710bdcb9a4687d96f.tar.bz2
Fix incorrect exception_index use
env->exception_index should be cleared with -1, not 0. See also 821b19fe923ac49a24cdb4af902584fdd019cee6. Spotted by Igor Kovalenko. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/kvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index 0992563..0199a65 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -186,7 +186,7 @@ static void kvm_s390_interrupt_internal(CPUState *env, int type, uint32_t parm,
}
env->halted = 0;
- env->exception_index = 0;
+ env->exception_index = -1;
kvmint.type = type;
kvmint.parm = parm;
@@ -325,7 +325,7 @@ static int s390_cpu_restart(CPUState *env)
{
kvm_s390_interrupt(env, KVM_S390_RESTART, 0);
env->halted = 0;
- env->exception_index = 0;
+ env->exception_index = -1;
qemu_cpu_kick(env);
dprintf("DONE: SIGP cpu restart: %p\n", env);
return 0;