Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);