提交 83babbca 编写于 作者: A Avi Kivity

KVM: x86 emulator: add macros for repetitive instructions

Some instructions are repetitive in the opcode space, add macros for
consolidating them.
Signed-off-by: NAvi Kivity <avi@redhat.com>
Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
上级 91269b8f
......@@ -94,6 +94,15 @@
#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)
enum {
Group1_80, Group1_81, Group1_82, Group1_83,
Group1A, Group3_Byte, Group3, Group4, Group5, Group7,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册