]> Git Repo - qemu.git/commitdiff
apb: Fix compiler warnings (large constants)
authorStefan Weil <[email protected]>
Sat, 7 Jun 2014 18:54:42 +0000 (20:54 +0200)
committerMichael Tokarev <[email protected]>
Tue, 10 Jun 2014 15:39:34 +0000 (19:39 +0400)
Both constants need more than 32 bit.

Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
hw/pci-host/apb.c

index 1497008258addb180b18e6c78ffcedfa3cdd3434..6fa27234491f8c7b97f88df1856bc6a99376f45c 100644 (file)
@@ -99,8 +99,8 @@ do { printf("IOMMU: " fmt , ## __VA_ARGS__); } while (0)
 #define IOMMU_TTE_DATA_SIZE     (1ULL << 61)
 #define IOMMU_TTE_DATA_W        (1ULL << 1)
 
-#define IOMMU_TTE_PHYS_MASK_8K  0x1ffffffe000
-#define IOMMU_TTE_PHYS_MASK_64K 0x1ffffff8000
+#define IOMMU_TTE_PHYS_MASK_8K  0x1ffffffe000ULL
+#define IOMMU_TTE_PHYS_MASK_64K 0x1ffffff8000ULL
 
 #define IOMMU_TSB_8K_OFFSET_MASK_8M    0x00000000007fe000ULL
 #define IOMMU_TSB_8K_OFFSET_MASK_16M   0x0000000000ffe000ULL
This page took 0.027593 seconds and 4 git commands to generate.