diff options
author | Avi Kivity <avi@qumranet.com> | 2007-10-31 11:15:56 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 17:52:59 +0200 |
commit | 33615aa956521923eab0552994b5961cd3034042 (patch) | |
tree | dae9983159614d9bdfed6d60201e60f1a72105f0 /drivers/kvm/x86_emulate.h | |
parent | 3c118e24af821d68dca0ba81e9499820c840c133 (diff) |
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>
Diffstat (limited to 'drivers/kvm/x86_emulate.h')
-rw-r--r-- | drivers/kvm/x86_emulate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/x86_emulate.h b/drivers/kvm/x86_emulate.h index f03b1287700..e34868b42c3 100644 --- a/drivers/kvm/x86_emulate.h +++ b/drivers/kvm/x86_emulate.h @@ -126,6 +126,7 @@ struct decode_cache { u8 rep_prefix; u8 op_bytes; u8 ad_bytes; + u8 rex_prefix; struct operand src; struct operand dst; unsigned long *override_base; |