Christian Borntraeger 6efd2c2a12 s390x/ipl: Fix boot if no bootindex was specified
commit fa92e218df ("s390x/ipl: avoid sign extension") introduced
a regression:

qemu-system-s390x -drive file=image.qcow,format=qcow2
does not boot, the bios states
"No virtio-blk device found!"

adding bootindex=1 does boot.

The reason is that the uint32_t as return value will not do the right
thing for the return -1 (default without bootindex).
The bios itself, will interpret a 64bit -1 as autodetect (but it will
interpret 32bit -1 as ccw device address ff.ff.ffff)

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: qemu-stable@nongnu.org # v2.3.0
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2015-07-02 15:35:33 +02:00
2015-06-23 15:08:52 +01:00
2015-06-23 17:08:22 +02:00
2015-06-24 16:33:42 +01:00
2015-06-30 09:34:58 +02:00
2015-06-17 20:02:15 +01:00
2015-06-22 17:40:01 +02:00
2015-06-22 17:40:01 +02:00
2015-06-22 17:40:01 +02:00
2015-06-22 17:40:01 +02:00
…
2015-04-04 09:45:59 +03:00
2014-06-16 13:24:35 +02:00
…
2015-06-12 06:42:34 +02:00
2015-06-23 15:08:52 +01:00
…
…
…
…
2015-06-22 18:20:40 +02:00
2015-06-03 14:21:24 +03:00
2015-06-22 17:40:01 +02:00
2015-04-30 16:05:48 +03:00
…
2015-06-12 13:42:17 +01:00
2015-06-23 20:23:39 +03:00
2015-06-03 14:21:24 +03:00
…
…
2015-05-11 08:59:07 -04:00
2015-06-23 19:57:27 +03:00
2015-05-22 15:58:22 -04:00
…
2015-06-11 10:13:28 +01:00
2015-04-25 22:05:07 +01:00
2015-06-22 18:20:40 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
722 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%