diff options
author | Avi Kivity <avi@redhat.com> | 2010-07-29 08:11:54 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:50:25 -0400 |
commit | d0e533255d3811382c97b594ff7ab19b9b036814 (patch) | |
tree | 1473d26d965f25d3548e3424748d969de69d5c73 /arch/x86/kvm/emulate.c | |
parent | 73fba5f4fe3e08bd7acb18a65b53643445c8f028 (diff) |
KVM: x86 emulator: allow repeat macro arguments to contain commas
Needed for repeating instructions with execution functions.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 70a7cb49ff88..7e9bcda3937e 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -94,14 +94,14 @@ | |||
94 | #define Src2One (3<<29) | 94 | #define Src2One (3<<29) |
95 | #define Src2Mask (7<<29) | 95 | #define Src2Mask (7<<29) |
96 | 96 | ||
97 | #define X2(x) x, x | 97 | #define X2(x...) x, x |
98 | #define X3(x) X2(x), x | 98 | #define X3(x...) X2(x), x |
99 | #define X4(x) X2(x), X2(x) | 99 | #define X4(x...) X2(x), X2(x) |
100 | #define X5(x) X4(x), x | 100 | #define X5(x...) X4(x), x |
101 | #define X6(x) X4(x), X2(x) | 101 | #define X6(x...) X4(x), X2(x) |
102 | #define X7(x) X4(x), X3(x) | 102 | #define X7(x...) X4(x), X3(x) |
103 | #define X8(x) X4(x), X4(x) | 103 | #define X8(x...) X4(x), X4(x) |
104 | #define X16(x) X8(x), X8(x) | 104 | #define X16(x...) X8(x), X8(x) |
105 | 105 | ||
106 | struct opcode { | 106 | struct opcode { |
107 | u32 flags; | 107 | u32 flags; |