Skip to content

Commit

Permalink
s390x: Return specification exception for unimplemented diag 308 subc…
Browse files Browse the repository at this point in the history
…odes

The architecture specifies specification exceptions for all
unavailable subcodes.

The presence of subcodes is indicated by checking some query subcode.
For example 6 will indicate that 3-6 are available. So future systems
might call new subcodes to check for new features. This should not
trigger a hw error, instead we return the architectured specification
exception.

Signed-off-by: Janosch Frank <[email protected]>
Cc: [email protected]
Message-Id: <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
  • Loading branch information
frankjaa authored and cohuck committed Jan 18, 2019
1 parent 0d3a761 commit 37dbd1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/s390x/diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void handle_diag_308(CPUS390XState *env, uint64_t r1, uint64_t r3, uintptr_t ra)
}
return;
default:
hw_error("Unhandled diag308 subcode %" PRIx64, subcode);
s390_program_interrupt(env, PGM_SPECIFICATION, ILEN_AUTO, ra);
break;
}
}

0 comments on commit 37dbd1f

Please sign in to comment.