KVM: x86 emulator: fix const value warning on i386 in svm insn RAX check
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 21 Apr 2011 16:09:22 +0000 (09:09 -0700)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:30 +0000 (08:39 -0400)
arch/x86/kvm/emulate.c:2598: warning: integer constant is too large for 'long' type

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c

index ccb8b383beab8524539c653b25299384f88f5416..77a5f54f151f810dd19de31a343b9970250355e3 100644 (file)
@@ -2738,7 +2738,7 @@ static int check_svme_pa(struct x86_emulate_ctxt *ctxt)
        u64 rax = ctxt->decode.regs[VCPU_REGS_RAX];
 
        /* Valid physical address? */
-       if (rax & 0xffff000000000000)
+       if (rax & 0xffff000000000000ULL)
                return emulate_gp(ctxt, 0);
 
        return check_svme(ctxt);