]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: Use ctxt->_eip directly in do_insn_fetch_byte()
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Sat, 30 Jul 2011 09:00:17 +0000 (18:00 +0900)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:17:59 +0000 (19:17 +0300)
commit98e492aba55b064b5ae8e0e17500d1a4a1e4d536
treebd3ff6f27d93bd66fe3b95c99ed0ad2520cbea61
parent93b7fdde2473c31bf9ae69200521ddd6575d32a7
KVM: x86 emulator: Use ctxt->_eip directly in do_insn_fetch_byte()

Instead of passing ctxt->_eip from insn_fetch() call sites, get it from
ctxt in do_insn_fetch_byte().  This is done by replacing the argument
_eip of insn_fetch() with _ctxt, which should be better than letting the
macro use ctxt silently in its body.

Though this changes the place where ctxt->_eip is incremented from
insn_fetch() to do_insn_fetch_byte(), this does not have any real
effect.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c