s390x: sclp: refactor invalid command check
commit679b844756e4eaa1b94bb82f52ec9f999dc4f851
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 27 Sep 2019 13:33:20 +0000 (27 15:33 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Sep 2019 11:51:49 +0000 (30 13:51 +0200)
treef8224f0747d0a7f914bad2df5d5861410ac2f923
parent7df1dac5f1c85312474df9cb3a8fcae72303da62
s390x: sclp: refactor invalid command check

Invalid command checking has to be done before the boundary check,
refactoring it now allows to insert the boundary check at the correct
place later.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com>
Message-Id: <1569591203-15258-2-git-send-email-imbrenda@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/s390x/event-facility.c
hw/s390x/sclp.c