OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e25280
)
s390x/sclp: Fixed setting of condition code register
author
Thomas Huth
<thuth@linux.vnet.ibm.com>
Tue, 14 Jan 2014 11:13:32 +0000
(12:13 +0100)
committer
Christian Borntraeger
<borntraeger@de.ibm.com>
Thu, 27 Feb 2014 08:51:25 +0000
(09:51 +0100)
In the SCLP handler function, the condition code register must
only be set if no exception occured.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
target-s390x/kvm.c
patch
|
blob
|
history
diff --git
a/target-s390x/kvm.c
b/target-s390x/kvm.c
index
e7b3b13
..
d3f0d4a
100644
(file)
--- a/
target-s390x/kvm.c
+++ b/
target-s390x/kvm.c
@@
-451,8
+451,9
@@
static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run,
r = sclp_service_call(env, sccb, code);
if (r < 0) {
enter_pgmcheck(cpu, -r);
+ } else {
+ setcc(cpu, r);
}
- setcc(cpu, r);
return 0;
}