]> git.proxmox.com Git - qemu.git/commitdiff
s390: fix build on 32 bit host
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 13 Dec 2009 14:44:33 +0000 (16:44 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 13 Dec 2009 18:47:09 +0000 (19:47 +0100)
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 <mst@redhat.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/s390-virtio.c

index 51c032adc2563591ca50825b541d8629ef59784b..e71dbe61a5b0cac71d49be2cc9973c28a4a148e3 100644 (file)
@@ -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) {