KVM: x86 emulator: centralize decoding of one-byte register access insns
authorAvi Kivity <avi@qumranet.com>
Wed, 31 Oct 2007 09:15:56 +0000 (11:15 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:59 +0000 (17:52 +0200)
commit33615aa956521923eab0552994b5961cd3034042
treedae9983159614d9bdfed6d60201e60f1a72105f0
parent3c118e24af821d68dca0ba81e9499820c840c133
KVM: x86 emulator: centralize decoding of one-byte register access insns

Instructions like 'inc reg' that have the register operand encoded
in the opcode are currently specially decoded.  Extend
decode_register_operand() to handle that case, indicated by having
DstReg or SrcReg without ModRM.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/x86_emulate.c
drivers/kvm/x86_emulate.h