From: Bandan Das Date: Wed, 16 Apr 2014 16:46:14 +0000 (-0400) Subject: KVM: emulate: do not initialize memopp X-Git-Tag: omap-for-v3.17/fixes-against-rc2~184^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41061cdb98a0bec464278b4db8e894a3121671f5;p=pandora-kernel.git KVM: emulate: do not initialize memopp rip_relative is only set if decode_modrm runs, and if you have ModRM you will also have a memopp. We can then access memopp unconditionally. Note that rip_relative cannot be hoisted up to decode_modrm, or you break "mov $0, xyz(%rip)". Also, move typecast on "out of range value" of mem.ea to decode_modrm. Together, all these optimizations save about 50 cycles on each emulated instructions (4-6%). Signed-off-by: Bandan Das [Fix immediate operands with rip-relative addressing. - Paolo] Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed