KVM: x86 emulator: Place insn_fetch helpers together
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Sat, 14 May 2011 15:54:58 +0000 (00:54 +0900)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:44:56 +0000 (11:44 +0300)
commit67cbc90db5c0f03aa5e54204c388403ec8c25862
tree105b1c9dfac9b34f5232852784cdc2f94113a238
parente76779339ba9c3d56f1a39ff0bfb1dfe7614b062
KVM: x86 emulator: Place insn_fetch helpers together

The two macros need special care to use:
  Assume rc, ctxt, ops and done exist outside of them.
  Can goto outside.

Considering the fact that these are used only in decode functions,
moving these right after do_insn_fetch() seems to be a right thing
to improve the readability.

We also rename do_fetch_insn_byte() to do_insn_fetch_byte() to be
consistent.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c
This page took 0.026426 seconds and 5 git commands to generate.