aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2020-01-24 08:48:18 -0500
committerCornelia Huck <cohuck@redhat.com>2020-01-27 12:13:10 +0100
commit4103500e2fa934a6995e4cedab37423e606715bf (patch)
treeb52e9840a334833a45da239ca8b6f9902f3217d6 /target
parent3e0209bbd6027d60539976b39a8f2131a81e5127 (diff)
s390x: sigp: Fix sense running reporting
The logic was inverted and reported running if the cpu was stopped. Let's fix that. Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Fixes: d1b468bc8869 ("s390x/tcg: implement SIGP SENSE RUNNING STATUS") Reviewed-by: David Hildenbrand <david@redhat.com> Message-Id: <20200124134818.9981-1-frankja@linux.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target')
-rw-r--r--target/s390x/sigp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/s390x/sigp.c b/target/s390x/sigp.c
index 727875bb4a..c604f17710 100644
--- a/target/s390x/sigp.c
+++ b/target/s390x/sigp.c
@@ -348,9 +348,9 @@ static void sigp_sense_running(S390CPU *dst_cpu, SigpInfo *si)
/* If halted (which includes also STOPPED), it is not running */
if (CPU(dst_cpu)->halted) {
- si->cc = SIGP_CC_ORDER_CODE_ACCEPTED;
- } else {
set_sigp_status(si, SIGP_STAT_NOT_RUNNING);
+ } else {
+ si->cc = SIGP_CC_ORDER_CODE_ACCEPTED;
}
}