s390: fix build on 32 bit host
PATCH 1/1 s390: fix build on 32 bit host
Building on 32 bit host we get:hw/s390-virtio.c: In function ‘s390_init’:hw/s390-virtio.c:184: error: integer constant is too large for ‘unsigned long’ type 64 bit values must be ULL.
Signed-off-by Michael S. Tsirkin <[email protected]>
--- hw/s390-virtio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/s390-virtio.c +1 -1
@@ -181,7 +181,7 @@ static void s390_init(ram_addr_t ram_size,cpu_synchronize_state (env); env->psw.addr =KERN_IMAGE_START ; - env->psw.mask =0x0000000180000000UL ; + env->psw.mask =0x0000000180000000ULL ; }if (initrd_filename) {
Signature · 1 line
1.6.6.rc1.43.gf55cc
Quoted 6 lines · Michael S. Tsirkin
Building on 32 bit host we get:
hw/s390-virtio.c: In function ‘s390_init’:hw/s390-virtio.c:184: error: integer constant is too large for ‘unsigned long’ type 64 bit values must be ULL.Signed-off-by Michael S. Tsirkin <[email protected]>
Acked-by Alexander Graf <[email protected]>
Alex