unicorn/qemu/include
Igor Mammedov 6f265062ef
qom: add helper macro DEFINE_TYPES()
DEFINE_TYPES() will help to simplify following routine patterns:

static void foo_register_types(void)
{
type_register_static(&foo1_type_info);
type_register_static(&foo2_type_info);
...
}

type_init(foo_register_types)

or

static void foo_register_types(void)
{
int i;

for (i = 0; i < ARRAY_SIZE(type_infos); i++) {
type_register_static(&type_infos[i]);
}
}

type_init(foo_register_types)

with a single line

DEFINE_TYPES(type_infos)

where types have static definition which could be consolidated in
a single array of TypeInfo structures.
It saves us ~6-10LOC per use case and would help to replace
imperative foo_register_types() there with declarative style of
type registration.

Backports commit 38b5d79b2e8cf6085324066d84e8bb3b3bbe8548 from qemu
2018-03-05 03:51:54 -05:00
..
crypto
exec exec-all: extract tb->tc_* into a separate struct tc_tb 2018-03-05 02:57:22 -05:00
fpu softfloat: define floatx80_round() 2018-03-03 20:57:27 -05:00
hw boards.h: Define new flag ignore_memory_transaction_failures 2018-03-04 21:27:15 -05:00
qapi qnum: add uint type 2018-03-03 18:37:56 -05:00
qemu bitmap: provide to_le/from_le helpers 2018-03-05 01:11:13 -05:00
qom qom: add helper macro DEFINE_TYPES() 2018-03-05 03:51:54 -05:00
sysemu tcg: add options for enabling MTTCG 2018-03-02 09:25:01 -05:00
config.h
elf.h tcg/s390: Use constant pool for movi 2018-03-04 22:32:04 -05:00
glib_compat.h qapi: Improve qobject input visitor error reporting 2018-03-02 12:05:53 -05:00
qemu-common.h tcg: Add EXCP_ATOMIC 2018-02-27 11:57:58 -05:00