x86: pre-process opcodes table before parsing
authorJan Beulich <jbeulich@novell.com>
Thu, 19 Jul 2018 06:28:29 +0000 (08:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 19 Jul 2018 06:28:29 +0000 (08:28 +0200)
commitc30be56ebf7989e36f5c7d4a703cb00f7d4ca2ab
tree6f5a4a23c2d56878e002fe9b566dc9dc81f06503
parente387da76fc6ee61f6bc30edfa1210be173e96db4
x86: pre-process opcodes table before parsing

Instead of expanding macro-like constructs in i386-gen, have the C pre-
processor do this for us. Besides being a prerequisite for the next
template folding steps, this also paves the way for removing various
hidden dependencies between #define-s in i386-opc.h and plain literal
numbers used in i386-opc.tbl.

The #undef of None is solely to leave the generated i386-tbl.h entirely
unchanged.
opcodes/ChangeLog
opcodes/Makefile.am
opcodes/Makefile.in
opcodes/i386-gen.c
opcodes/i386-opc.tbl