[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/7] s390/sclp: improve special wait psw logic
From: |
Cornelia Huck |
Subject: |
[PULL 4/7] s390/sclp: improve special wait psw logic |
Date: |
Thu, 27 Feb 2020 12:54:28 +0100 |
From: Christian Borntraeger <address@hidden>
There is a special quiesce PSW that we check for "shutdown". Otherwise disabled
wait is detected as "crashed". Architecturally we must only check PSW bits
116-127. Fix this.
Cc: address@hidden
Signed-off-by: Christian Borntraeger <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Acked-by: Janosch Frank <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
target/s390x/helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/s390x/helper.c b/target/s390x/helper.c
index b810ad431e44..ed726849114f 100644
--- a/target/s390x/helper.c
+++ b/target/s390x/helper.c
@@ -89,7 +89,7 @@ hwaddr s390_cpu_get_phys_addr_debug(CPUState *cs, vaddr vaddr)
static inline bool is_special_wait_psw(uint64_t psw_addr)
{
/* signal quiesce */
- return psw_addr == 0xfffUL;
+ return (psw_addr & 0xfffUL) == 0xfffUL;
}
void s390_handle_wait(S390CPU *cpu)
--
2.21.1
- [PULL 0/7] s390x updates, Cornelia Huck, 2020/02/27
- [PULL 1/7] target/s390x/translate: Fix RNSBG instruction, Cornelia Huck, 2020/02/27
- [PULL 2/7] linux-headers: update, Cornelia Huck, 2020/02/27
- [PULL 3/7] s390x: Add missing vcpu reset functions, Cornelia Huck, 2020/02/27
- [PULL 4/7] s390/sclp: improve special wait psw logic,
Cornelia Huck <=
- [PULL 5/7] docs: rstfy s390 dasd ipl documentation, Cornelia Huck, 2020/02/27
- [PULL 7/7] s390x: Rename and use constants for short PSW address and mask, Cornelia Huck, 2020/02/27
- [PULL 6/7] docs: rstfy vfio-ap documentation, Cornelia Huck, 2020/02/27
- Re: [PULL 0/7] s390x updates, Peter Maydell, 2020/02/28