aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-09-29 17:55:56 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2013-10-02 22:55:28 +0400
commit00fdef658675ac2d019005769c426c275bceec6f (patch)
tree4e41c1fd0cca6ff4452834673a56701e773ae029 /target-i386
parent3a6f2703268c99f2f2f0a93f2fbacec7b039fd36 (diff)
downloadqemu-00fdef658675ac2d019005769c426c275bceec6f.zip
qemu-00fdef658675ac2d019005769c426c275bceec6f.tar.gz
qemu-00fdef658675ac2d019005769c426c275bceec6f.tar.bz2
target-i386: Fix compiler warning (integer constant is too large)
From buildbot default_i386_rhel61: CC i386-softmmu/target-i386/arch_memory_mapping.o target-i386/arch_memory_mapping.c: In function 'walk_pde': target-i386/arch_memory_mapping.c:110: warning: integer constant is too large for 'long' type Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/arch_memory_mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/arch_memory_mapping.c b/target-i386/arch_memory_mapping.c
index 2566a04..462f984 100644
--- a/target-i386/arch_memory_mapping.c
+++ b/target-i386/arch_memory_mapping.c
@@ -75,7 +75,7 @@ static void walk_pte2(MemoryMappingList *list,
}
/* PAE Paging or IA-32e Paging */
-#define PLM4_ADDR_MASK 0xffffffffff000 /* selects bits 51:12 */
+#define PLM4_ADDR_MASK 0xffffffffff000ULL /* selects bits 51:12 */
static void walk_pde(MemoryMappingList *list, hwaddr pde_start_addr,
int32_t a20_mask, target_ulong start_line_addr)