KVM: x86 emulator: Add wrappers for easily defining opcodes
authorAvi Kivity <avi@redhat.com>
Thu, 29 Jul 2010 12:11:36 +0000 (15:11 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:08 +0000 (10:50 +0200)
commitfd853310a1ebaef257956208165873494bb805dc
tree5bcd3f909d634bbcbd0ecdaf8b0bed630150c2b6
parentd65b1dee408243daa45110ee494d204508d31657
KVM: x86 emulator: Add wrappers for easily defining opcodes

Once 'struct opcode' grows, its initializer will become more complicated.
Wrap the simple initializers in a D() macro, and replace the empty initializers
with an even simpler N macro.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c