diff options
author | Thomas Huth <thuth@redhat.com> | 2017-07-05 17:25:45 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2017-07-05 19:46:30 +0200 |
commit | 1045e3cdafaf1218d9f771080ba5c9d4f64346e4 (patch) | |
tree | c0e49b1cee5a38f6619e30e61439911c1d388292 /hw/s390x | |
parent | cda3c19ff56d1b567631ce17f7a3bdb47cfa9455 (diff) |
hw/s390x/ipl: Fix endianness problem with netboot_start_addr
The start address has to be stored in big endian byte order
in the iplb.ccw block for the guest.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1499268345-12552-1-git-send-email-thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'hw/s390x')
-rw-r--r-- | hw/s390x/ipl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index 4e6469db0f..cc360031ef 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -418,7 +418,7 @@ void s390_ipl_prepare_cpu(S390CPU *cpu) error_report_err(err); vm_stop(RUN_STATE_INTERNAL_ERROR); } - ipl->iplb.ccw.netboot_start_addr = ipl->start_addr; + ipl->iplb.ccw.netboot_start_addr = cpu_to_be64(ipl->start_addr); } } |