diff options
author | Avi Kivity <avi@qumranet.com> | 2007-10-31 05:15:56 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:52:59 -0500 |
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 f03b1287700a..e34868b42c33 100644 --- a/drivers/kvm/x86_emulate.h +++ b/drivers/kvm/x86_emulate.h | |||
@@ -126,6 +126,7 @@ struct decode_cache { | |||
126 | u8 rep_prefix; | 126 | u8 rep_prefix; |
127 | u8 op_bytes; | 127 | u8 op_bytes; |
128 | u8 ad_bytes; | 128 | u8 ad_bytes; |
129 | u8 rex_prefix; | ||
129 | struct operand src; | 130 | struct operand src; |
130 | struct operand dst; | 131 | struct operand dst; |
131 | unsigned long *override_base; | 132 | unsigned long *override_base; |