Skip to content

Commit

Permalink
s390x/tcg: specification exception for unknown diag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cohuck committed Aug 30, 2017
1 parent ea5bef4 commit a8aec85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/s390x/misc_helper.c
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit a8aec85

Please sign in to comment.