Skip to content

Commit

Permalink
KVM: x86 emulator: allow repeat macro arguments to contain commas
Browse files Browse the repository at this point in the history
Needed for repeating instructions with execution functions.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
  • Loading branch information
Avi Kivity committed Oct 24, 2010
1 parent 73fba5f commit d0e5332
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@
#define Src2One (3<<29)
#define Src2Mask (7<<29)

#define X2(x) x, x
#define X3(x) X2(x), x
#define X4(x) X2(x), X2(x)
#define X5(x) X4(x), x
#define X6(x) X4(x), X2(x)
#define X7(x) X4(x), X3(x)
#define X8(x) X4(x), X4(x)
#define X16(x) X8(x), X8(x)
#define X2(x...) x, x
#define X3(x...) X2(x), x
#define X4(x...) X2(x), X2(x)
#define X5(x...) X4(x), x
#define X6(x...) X4(x), X2(x)
#define X7(x...) X4(x), X3(x)
#define X8(x...) X4(x), X4(x)
#define X16(x...) X8(x), X8(x)

struct opcode {
u32 flags;
Expand Down

0 comments on commit d0e5332

Please sign in to comment.