Skip to content

Commit

Permalink
KVM: x86 emulator: fix const value warning on i386 in svm insn RAX check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Avi Kivity committed May 22, 2011
1 parent cfb2237 commit d422444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d422444

Please sign in to comment.