summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-12-13 16:44:33 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-12-13 19:44:00 +0100
commit0435d39360775ab04ac0b2c443684b96f7c78563 (patch)
tree129089d8ef072deed4fd85f6656587bae2d2027a /hw
parentb32bb95264035c571f81fbefb06fec217b0cc3c8 (diff)
downloadqemu-0435d39360775ab04ac0b2c443684b96f7c78563.tar.gz
qemu-0435d39360775ab04ac0b2c443684b96f7c78563.tar.bz2
qemu-0435d39360775ab04ac0b2c443684b96f7c78563.zip
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 <mst@redhat.com> Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw')
-rw-r--r--hw/s390-virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c
index 51c032adc2..e71dbe61a5 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) {