KVM: x86 emulator: Clean up init_emulate_ctxt()
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Wed, 25 May 2011 02:06:16 +0000 (11:06 +0900)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:08 +0000 (11:45 +0300)
commitadf52235b4082e67f31bf1fba36f1dce312633d6
treea1bb9e64f46b7f6ae993c875e99dcc0a9776e4c0
parentd780592b99d7d8a5ff905f6bacca519d4a342c76
KVM: x86 emulator: Clean up init_emulate_ctxt()

Use a local pointer to the emulate_ctxt for simplicity.  Then, arrange
the hard-to-read mode selection lines neatly.

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