diff options
author | Janosch Frank <frankja@linux.ibm.com> | 2020-03-10 05:09:50 -0400 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2020-03-10 10:18:20 +0100 |
commit | 94c21436e5a89143f8b9cb4d089d1a2f3f4fd377 (patch) | |
tree | 6c356ce06d87f81ea44a1596175bf8f1724dfc6d /target/s390x | |
parent | 0a01e082a428b921e48b5314881b1f23a7b0fe50 (diff) | |
download | qemu-94c21436e5a89143f8b9cb4d089d1a2f3f4fd377.zip qemu-94c21436e5a89143f8b9cb4d089d1a2f3f4fd377.tar.gz qemu-94c21436e5a89143f8b9cb4d089d1a2f3f4fd377.tar.bz2 |
s390x: ipl: Consolidate iplb validity check into one function
It's nicer to just call one function than calling a function for each
possible iplb type.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20200310090950.61172-1-frankja@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'target/s390x')
-rw-r--r-- | target/s390x/diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/diag.c b/target/s390x/diag.c index b5aec06..54e5670 100644 --- a/target/s390x/diag.c +++ b/target/s390x/diag.c @@ -117,7 +117,7 @@ void handle_diag_308(CPUS390XState *env, uint64_t r1, uint64_t r3, uintptr_t ra) cpu_physical_memory_read(addr, iplb, be32_to_cpu(iplb->len)); - if (!iplb_valid_ccw(iplb) && !iplb_valid_fcp(iplb)) { + if (!iplb_valid(iplb)) { env->regs[r1 + 1] = DIAG_308_RC_INVALID; goto out; } |