[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/15] s390x: sigp: Fix sense running reporting
From: |
Cornelia Huck |
Subject: |
[PULL 15/15] s390x: sigp: Fix sense running reporting |
Date: |
Mon, 27 Jan 2020 13:20:16 +0100 |
From: Janosch Frank <address@hidden>
The logic was inverted and reported running if the cpu was stopped.
Let's fix that.
Signed-off-by: Janosch Frank <address@hidden>
Fixes: d1b468bc8869 ("s390x/tcg: implement SIGP SENSE RUNNING STATUS")
Reviewed-by: David Hildenbrand <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
target/s390x/sigp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/s390x/sigp.c b/target/s390x/sigp.c
index 727875bb4ab9..c604f177100f 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;
}
}
--
2.21.1
- [PULL 04/15] s390x: adapter routes error handling, (continued)
- [PULL 04/15] s390x: adapter routes error handling, Cornelia Huck, 2020/01/27
- [PULL 05/15] s390x/event-facility: fix error propagation, Cornelia Huck, 2020/01/27
- [PULL 06/15] target/s390x: Remove duplicated ifdef macro, Cornelia Huck, 2020/01/27
- [PULL 07/15] docs/devel: fix stable process doc formatting, Cornelia Huck, 2020/01/27
- [PULL 09/15] target/s390x: Move struct DisasFields definition earlier, Cornelia Huck, 2020/01/27
- [PULL 08/15] target/s390x/kvm: Enable adapter interruption suppression again, Cornelia Huck, 2020/01/27
- [PULL 10/15] target/s390x: Remove DisasFields argument from callbacks, Cornelia Huck, 2020/01/27
- [PULL 12/15] target/s390x: Move DisasFields into DisasContext, Cornelia Huck, 2020/01/27
- [PULL 14/15] hw/s390x: Add a more verbose comment about get_machine_class() and the wrappers, Cornelia Huck, 2020/01/27
- [PULL 13/15] target/s390x: Remove DisasFields argument from extract_insn, Cornelia Huck, 2020/01/27
- [PULL 15/15] s390x: sigp: Fix sense running reporting,
Cornelia Huck <=
- [PULL 11/15] target/s390x: Pass DisasContext to get_field and have_field, Cornelia Huck, 2020/01/27
- Re: [PULL 00/15] s390x update, Peter Maydell, 2020/01/27