Commit d4224449 authored by Randy Dunlap's avatar Randy Dunlap Committed by Avi Kivity

KVM: x86 emulator: fix const value warning on i386 in svm insn RAX check

arch/x86/kvm/emulate.c:2598: warning: integer constant is too large for 'long' type
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent cfb22375
...@@ -2738,7 +2738,7 @@ static int check_svme_pa(struct x86_emulate_ctxt *ctxt) ...@@ -2738,7 +2738,7 @@ static int check_svme_pa(struct x86_emulate_ctxt *ctxt)
u64 rax = ctxt->decode.regs[VCPU_REGS_RAX]; u64 rax = ctxt->decode.regs[VCPU_REGS_RAX];
/* Valid physical address? */ /* Valid physical address? */
if (rax & 0xffff000000000000) if (rax & 0xffff000000000000ULL)
return emulate_gp(ctxt, 0); return emulate_gp(ctxt, 0);
return check_svme(ctxt); return check_svme(ctxt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment