KVM: x86 emulator: put register operand fetch into a function
authorAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 09:53:09 +0000 (12:53 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:33 +0000 (10:50 +0200)
commit91ff3cb43cb3dd8810d726dfa1f3736dc9aea1df
tree216caf9b0a6cb48c555d21fc310db5a19abfa9cc
parent3d9e77dff81c8be21ec0e7950ae06d1bddff8066
KVM: x86 emulator: put register operand fetch into a function

The code is repeated three times, put it into fetch_register_operand()

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c