]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
s390x/tcg: specification exception for unknown diag
authorCornelia Huck <cohuck@redhat.com>
Fri, 18 Aug 2017 10:55:13 +0000 (12:55 +0200)
committerCornelia Huck <cohuck@redhat.com>
Wed, 30 Aug 2017 16:23:25 +0000 (18:23 +0200)
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>
target/s390x/misc_helper.c

index d23ffcd89042302fae80bae50729517ddd6c4899..5a1eba02ab7e75745640290cbe7bbb0fd8b1a6fd 100644 (file)
@@ -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);
     }
 }