提交 4103500e 编写于 作者: J Janosch Frank 提交者: Cornelia Huck

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: NJanosch Frank <frankja@linux.ibm.com>
Fixes: d1b468bc ("s390x/tcg: implement SIGP SENSE RUNNING STATUS")
Reviewed-by: NDavid Hildenbrand <david@redhat.com>
Message-Id: <20200124134818.9981-1-frankja@linux.ibm.com>
Signed-off-by: NCornelia Huck <cohuck@redhat.com>
上级 3e0209bb
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册