unicorn/qemu
Eric Blake 7f741a6c9b
qapi: Add new visit_free() function
Making each visitor provide its own (awkwardly-named) FOO_cleanup()
is unusual, when we can instead have a polymorphic visit_free()
interface. Over the next few patches, we can use the polymorphic
functions to eliminate the need for a FOO_get_visitor() function
for accessing specific visitor functionality, once everything can
be accessed directly through the Visitor* interfaces.

The dealloc visitor is the first one converted to completely use
the new entry point, since qapi_dealloc_visitor_cleanup() was the
only reason that qapi_dealloc_get_visitor() existed, and only
generated and testsuite code was even using it. With the new
visit_free() entry point in place, we no longer need to expose
the QapiDeallocVisitor subtype through qapi_dealloc_visitor_new(),
and can get by with less generated code, with diffs that look like:

| void qapi_free_ACPIOSTInfo(ACPIOSTInfo *obj)
| {
|- QapiDeallocVisitor *qdv;
| Visitor *v;
|
| if (!obj) {
| return;
| }
|
|- qdv = qapi_dealloc_visitor_new();
|- v = qapi_dealloc_get_visitor(qdv);
|+ v = qapi_dealloc_visitor_new();
| visit_type_ACPIOSTInfo(v, NULL, &obj, NULL);
|- qapi_dealloc_visitor_cleanup(qdv);
|+ visit_free(v);
|}

Backports commit 2c0ef9f411ae6081efa9eca5b3eab2dbeee45a6c from qemu
2018-02-25 01:05:41 -05:00
..
crypto
default-configs
docs
fpu softfloat: Handle snan_bit_is_one == 0 in MIPS pickNaNMulAdd() 2018-02-24 20:40:11 -05:00
hw
include qapi: Add new visit_free() function 2018-02-25 01:05:41 -05:00
qapi qapi: Add new visit_free() function 2018-02-25 01:05:41 -05:00
qobject
qom qom: API to get instance_size of a type 2018-02-24 19:00:16 -05:00
scripts qapi: Add new visit_free() function 2018-02-25 01:05:41 -05:00
target-arm softfloat: Implement run-time-configurable meaning of signaling NaN bit 2018-02-24 20:27:12 -05:00
target-i386 exec: [tcg] Track which vCPU is performing translation and execution 2018-02-24 19:21:39 -05:00
target-m68k softfloat: Implement run-time-configurable meaning of signaling NaN bit 2018-02-24 20:27:12 -05:00
target-mips target-mips: Add FCR31's FS bit definition 2018-02-24 21:32:10 -05:00
target-sparc exec: [tcg] Track which vCPU is performing translation and execution 2018-02-24 19:21:39 -05:00
tcg exec: [tcg] Track which vCPU is performing translation and execution 2018-02-24 19:21:39 -05:00
util range: Replace internal representation of Range 2018-02-25 00:44:36 -05:00
aarch64.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
aarch64eb.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
accel.c
arm.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
armeb.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
CODING_STYLE
configure configure: Enable -Werror for MinGW builds, too 2018-02-24 18:56:05 -05:00
COPYING
COPYING.LIB
cpu-exec-common.c cpu-exec: Rename cpu_resume_from_signal() to cpu_loop_exit_noexc() 2018-02-24 17:25:28 -05:00
cpu-exec.c tb hash: hash phys_pc, pc, and flags with xxhash 2018-02-24 18:00:14 -05:00
cpus.c
cputlb.c
exec.c
gen_all_header.sh
glib_compat.c qapi: Fix memleak in string visitors on int lists 2018-02-25 00:20:34 -05:00
HACKING
header_gen.py memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
ioport.c
LICENSE
m68k.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
Makefile Makefile: Add a FORCE target 2018-02-24 17:03:51 -05:00
Makefile.objs
Makefile.target
memory.c memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
memory_mapping.c
mips.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
mips64.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
mips64el.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
mipsel.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
powerpc.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
qapi-schema.json
qemu-log.c
qemu-timer.c
rules.mak Makefile: add dependency on scripts/create_config 2018-02-24 17:05:03 -05:00
softmmu_template.h
sparc.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
sparc64.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00
tcg-runtime.c
translate-all.c exec: [tcg] Track which vCPU is performing translation and execution 2018-02-24 19:21:39 -05:00
translate-all.h user-exec: Push resume-from-signal code out to handle_cpu_signal() 2018-02-24 17:21:06 -05:00
translate-common.c
unicorn_common.h
VERSION
vl.c
vl.h
x86_64.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00