Commit d0e53325 authored by Avi Kivity's avatar Avi Kivity

KVM: x86 emulator: allow repeat macro arguments to contain commas

Needed for repeating instructions with execution functions.
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 73fba5f4
...@@ -94,14 +94,14 @@ ...@@ -94,14 +94,14 @@
#define Src2One (3<<29) #define Src2One (3<<29)
#define Src2Mask (7<<29) #define Src2Mask (7<<29)
#define X2(x) x, x #define X2(x...) x, x
#define X3(x) X2(x), x #define X3(x...) X2(x), x
#define X4(x) X2(x), X2(x) #define X4(x...) X2(x), X2(x)
#define X5(x) X4(x), x #define X5(x...) X4(x), x
#define X6(x) X4(x), X2(x) #define X6(x...) X4(x), X2(x)
#define X7(x) X4(x), X3(x) #define X7(x...) X4(x), X3(x)
#define X8(x) X4(x), X4(x) #define X8(x...) X4(x), X4(x)
#define X16(x) X8(x), X8(x) #define X16(x...) X8(x), X8(x)
struct opcode { struct opcode {
u32 flags; u32 flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment