]> git.ipfire.org Git - thirdparty/qemu.git/commit
s390: Fix error handling and condition code of service call
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 23 Jul 2012 21:37:04 +0000 (21:37 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 21 Aug 2012 20:36:34 +0000 (15:36 -0500)
commit97ac3b1af57a4cdbf04ad55c308dff72bc9f1a61
treeea65e13856435ed808d904d9fe6779b36e97496e
parent08e642c00e979b10e3fb293272dc3057ab9f220b
s390: Fix error handling and condition code of service call

Invalid sccb addresses will cause specification or addressing exception.
Lets add those checks. Furthermore, the good case (cc=0) was incorrect
for KVM, we did not set the CC at all. We now use return codes < 0
as program checks and return codes > 0 as condition code values.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
(cherry picked from commit 9abf567d95a4e840df868ca993219175fbef8c22)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-s390x/kvm.c
target-s390x/op_helper.c