unicorn/qemu/scripts
Marc-André Lureau b55309fab2
qapi: add 'if' to top-level expressions
Accept 'if' key in top-level elements, accepted as string or list of
string type. The following patches will modify the test visitor to
check the value is correctly saved, and generate #if/#endif code (as a
single #if/endif line or a series for a list).

Example of 'if' key:
{ 'struct': 'TestIfStruct', 'data': { 'foo': 'int' },
'if': 'defined(TEST_IF_STRUCT)' }

The generated code is for now *unconditional*. Later patches generate
the conditionals.

Backports commit 967c885108f18e5065744719f7959ba5ea0a5b0d from qemu
2018-07-05 11:41:42 -04:00
..
qapi qapi: add 'if' to top-level expressions 2018-07-05 11:41:42 -04:00
create_config Makefile: Rename TARGET_DIRS to TARGET_LIST 2018-06-08 19:22:45 -04:00
decodetree.py target/arm: Add SVE decode skeleton 2018-05-20 00:48:14 -04:00
make_device_config.sh
ordereddict.py
qapi-gen.py qapi: Lift error reporting from QAPISchema.__init__() to callers 2018-03-09 08:55:45 -05:00