diff options
author | Avi Kivity <avi@redhat.com> | 2011-09-13 03:45:44 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-09-25 12:52:51 -0400 |
commit | 20c29ff205ea9c4e2bf4ef79b0e5b934d6c60aff (patch) | |
tree | 5210f61172b50fd35a21801cd0d4fbf72fcf8db4 /arch | |
parent | 4dd6a57df7ca9088a4b14664764e7adb9c120bb1 (diff) |
KVM: x86 emulator: free up some flag bits near src, dst
Op fields are going to grow by a bit, we need two free bits.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/emulate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 88d32fca1114..00e0904fab22 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -88,10 +88,6 @@ | |||
88 | #define SrcImmU16 (0xe<<5) /* Immediate operand, unsigned, 16 bits */ | 88 | #define SrcImmU16 (0xe<<5) /* Immediate operand, unsigned, 16 bits */ |
89 | #define SrcDX (0xf<<5) /* Source is in DX register */ | 89 | #define SrcDX (0xf<<5) /* Source is in DX register */ |
90 | #define SrcMask (0xf<<5) | 90 | #define SrcMask (0xf<<5) |
91 | /* Generic ModRM decode. */ | ||
92 | #define ModRM (1<<9) | ||
93 | /* Destination is only written; never read. */ | ||
94 | #define Mov (1<<10) | ||
95 | #define BitOp (1<<11) | 91 | #define BitOp (1<<11) |
96 | #define MemAbs (1<<12) /* Memory operand is absolute displacement */ | 92 | #define MemAbs (1<<12) /* Memory operand is absolute displacement */ |
97 | #define String (1<<13) /* String instruction (rep capable) */ | 93 | #define String (1<<13) /* String instruction (rep capable) */ |
@@ -102,6 +98,10 @@ | |||
102 | #define Prefix (3<<15) /* Instruction varies with 66/f2/f3 prefix */ | 98 | #define Prefix (3<<15) /* Instruction varies with 66/f2/f3 prefix */ |
103 | #define RMExt (4<<15) /* Opcode extension in ModRM r/m if mod == 3 */ | 99 | #define RMExt (4<<15) /* Opcode extension in ModRM r/m if mod == 3 */ |
104 | #define Sse (1<<18) /* SSE Vector instruction */ | 100 | #define Sse (1<<18) /* SSE Vector instruction */ |
101 | /* Generic ModRM decode. */ | ||
102 | #define ModRM (1<<19) | ||
103 | /* Destination is only written; never read. */ | ||
104 | #define Mov (1<<20) | ||
105 | /* Misc flags */ | 105 | /* Misc flags */ |
106 | #define Prot (1<<21) /* instruction generates #UD if not in prot-mode */ | 106 | #define Prot (1<<21) /* instruction generates #UD if not in prot-mode */ |
107 | #define VendorSpecific (1<<22) /* Vendor specific instruction */ | 107 | #define VendorSpecific (1<<22) /* Vendor specific instruction */ |