]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
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, 24 Apr 2011 07:12:12 +0000 (10:12 +0300)
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 97b1a2955b5a40bb6e9446d4e1d21cc300b39a59..8ae537b3efcb0a0e27ffdb178d626224b1357814 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);