Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment