diff mbox

s390: fix build on 32 bit host

Message ID 20091213144433.GA11006@redhat.com
State New
Headers show

Commit Message

Michael S. Tsirkin Dec. 13, 2009, 2:44 p.m. UTC
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>
---
 hw/s390-virtio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Alexander Graf Dec. 13, 2009, 5:29 p.m. UTC | #1
On 13.12.2009, at 15:44, Michael S. Tsirkin wrote:

> 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>

Alex
diff mbox

Patch

diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c
index 51c032a..e71dbe6 100644
--- a/hw/s390-virtio.c
+++ b/hw/s390-virtio.c
@@ -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) {