aboutsummaryrefslogtreecommitdiff
path: root/target/s390x
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2017-08-18 12:55:13 +0200
committerCornelia Huck <cohuck@redhat.com>2017-08-30 18:23:25 +0200
commita8aec856b8e708d8346c60a17f72fc774fd41af5 (patch)
tree476c0f4916d627cfde383ba4d969641d0f90579b /target/s390x
parentea5bef49eadd240c7924f287f2da1bb457a3f92c (diff)
downloadqemu-a8aec856b8e708d8346c60a17f72fc774fd41af5.zip
qemu-a8aec856b8e708d8346c60a17f72fc774fd41af5.tar.gz
qemu-a8aec856b8e708d8346c60a17f72fc774fd41af5.tar.bz2
s390x/tcg: specification exception for unknown diag
While the PoP is silent on the issue, z/VM documentation states that unknown diagnose codes trigger a specification exception. We already do that when running with kvm, so change tcg to do so as well. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target/s390x')
-rw-r--r--target/s390x/misc_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/misc_helper.c b/target/s390x/misc_helper.c
index d23ffcd..5a1eba0 100644
--- a/target/s390x/misc_helper.c
+++ b/target/s390x/misc_helper.c
@@ -109,7 +109,7 @@ void HELPER(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num)
}
if (r) {
- program_interrupt(env, PGM_OPERATION, ILEN_AUTO);
+ program_interrupt(env, PGM_SPECIFICATION, ILEN_AUTO);
}
}