unicorn/qemu/hw
Marc-André Lureau aee9f7327f
machine: use class base init generated name
machine_class_base_init() member name is allocated by
machine_class_base_init(), but not freed by
machine_class_finalize().  Simply freeing there doesn't work,
because DEFINE_PC_MACHINE() overwrites it with a literal string.

Fix DEFINE_PC_MACHINE() not to overwrite it, and add the missing
free to machine_class_finalize().

Backports commit 8ea753718b2d1a42e9ce7b8db9f5e4e1f330e827 from qemu
2018-03-11 16:54:40 -04:00
..
arm Use DEFINE_MACHINE() to register all machines 2018-03-11 15:12:46 -04:00
core machine: use class base init generated name 2018-03-11 16:54:40 -04:00
i386 pc: Generate init functions with a macro 2018-03-11 13:42:19 -04:00
intc qemu-common: push cpu.h inclusion out of qemu-common.h 2018-02-24 01:50:56 -05:00
m68k Use DEFINE_MACHINE() to register all machines 2018-03-11 15:12:46 -04:00
mips Use DEFINE_MACHINE() to register all machines 2018-03-11 15:12:46 -04:00
sparc Use DEFINE_MACHINE() to register all machines 2018-03-11 15:12:46 -04:00
sparc64 Revert use of DEFINE_MACHINE() for registrations of multiple machines 2018-03-11 15:17:17 -04:00
Makefile.objs