The logic was inversed and reported running if the cpu was stopped. Let's fix that.
Signed-off-by: Janosch Frank <fran...@linux.ibm.com> --- target/s390x/sigp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/s390x/sigp.c b/target/s390x/sigp.c index 727875bb4a..286c0d6c9c 100644 --- a/target/s390x/sigp.c +++ b/target/s390x/sigp.c @@ -347,7 +347,7 @@ 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) { + if (!CPU(dst_cpu)->halted) { si->cc = SIGP_CC_ORDER_CODE_ACCEPTED; } else { set_sigp_status(si, SIGP_STAT_NOT_RUNNING); -- 2.20.1