]> git.proxmox.com Git - qemu.git/commitdiff
hw/alpha: Fix compiler warning (integer constant is too large)
authorStefan Weil <sw@weilnetz.de>
Sun, 29 Sep 2013 15:51:20 +0000 (17:51 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 2 Oct 2013 18:55:28 +0000 (22:55 +0400)
From buildbot default_i386_rhel61:

  CC    alpha-softmmu/hw/alpha/typhoon.o
hw/alpha/typhoon.c: In function 'typhoon_translate_iommu':
hw/alpha/typhoon.c:703: warning: integer constant is too large for 'long' type
hw/alpha/typhoon.c:703: warning: integer constant is too large for 'long' type

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Acked-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/alpha/typhoon.c

index aac9a32e0cf5e0bd83076af208b27cf9f0d957df..59e1bb83883161bef191eb20f719416efb97d05c 100644 (file)
@@ -700,7 +700,7 @@ static IOMMUTLBEntry typhoon_translate_iommu(MemoryRegion *iommu, hwaddr addr)
             }
         }
 
-        if (addr >= 0x80000000000 && addr <= 0xfffffffffff) {
+        if (addr >= 0x80000000000ull && addr <= 0xfffffffffffull) {
             /* Check the fourth window for DAC enable and window enable.  */
             if ((pchip->win[3].wba & 0x80000000001ull) == 0x80000000001ull) {
                 uint64_t pte_addr;