]> Pileus Git - ~andy/linux/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)
commit807941b121cf77e70eec8db308b8c1f496cc79e9
treebd3ff6f27d93bd66fe3b95c99ed0ad2520cbea61
parent743eeb0b01d2fbf4154bf87bff1ebb6fb18aeb7a
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