* [Qemu-devel] [PATCH] s390: fix build on 32 bit host
@ 2009-12-13 14:44 Michael S. Tsirkin
2009-12-13 17:29 ` [Qemu-devel] " Alexander Graf
0 siblings, 1 reply; 2+ messages in thread
From: Michael S. Tsirkin @ 2009-12-13 14:44 UTC (permalink / raw)
To: qemu-devel, Anthony Liguori, agraf
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(-)
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) {
--
1.6.6.rc1.43.gf55cc
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-13 17:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-13 14:44 [Qemu-devel] [PATCH] s390: fix build on 32 bit host Michael S. Tsirkin
2009-12-13 17:29 ` [Qemu-devel] " Alexander Graf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).