Skip to content
Commit cb16c348 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: x86 emulator: fix %rip-relative addressing with immediate source operand



%rip-relative addressing is relative to the first byte of the next instruction,
so we need to add %rip only after we've fetched any immediate bytes.

Based on original patch by Li Xin <xin.li@intel.com>.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Acked-by: default avatarLi Xin <xin.li@intel.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent b0af8dfd
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