unicorn/qemu
Eric Blake 37ae4dfdfd
qapi: Add parameter to visit_end_*
Rather than making the dealloc visitor track of stack of pointers
remembered during visit_start_* in order to free them during
visit_end_*, it's a lot easier to just make all callers pass the
same pointer to visit_end_*. The generated code has access to the
same pointer, while all other users are doing virtual walks and
can pass NULL. The dealloc visitor is then greatly simplified.

All three visit_end_*() functions intentionally take a void**,
even though the visit_start_*() functions differ between void**,
GenericList**, and GenericAlternate**. This is done for several
reasons: when doing a virtual walk, passing NULL doesn't care
what the type is, but when doing a generated walk, we already
have to cast the caller's specific FOO* to call visit_start,
while using void** lets us use visit_end without a cast. Also,
an upcoming patch will add a clone visitor that wants to use
the same implementation for all three visit_end callbacks,
which is made easier if all three share the same signature.

For visitors with already track per-object state (the QMP visitors
via a stack, and the string visitors which do not allow nesting),
add an assertion that the caller is indeed passing the same
pointer to paired calls.

Backports commit 1158bb2a058fcdd0c8fc3e60dc77f7a57ddbb271 from qemu
2018-02-25 00:57:54 -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 qemu-common: push cpu.h inclusion out of qemu-common.h 2018-02-24 01:50:56 -05:00
include qapi: Add parameter to visit_end_* 2018-02-25 00:57:54 -05:00
qapi qapi: Add parameter to visit_end_* 2018-02-25 00:57:54 -05:00
qobject util: move declarations out of qemu-common.h 2018-02-22 09:25:48 -05:00
qom qom: API to get instance_size of a type 2018-02-24 19:00:16 -05:00
scripts qapi: Add parameter to visit_end_* 2018-02-25 00:57:54 -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 accel: make configure_accelerator return void 2018-02-24 00:31:28 -05:00
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 cpu: move exec-all.h inclusion out of cpu.h 2018-02-24 02:39:08 -05:00
cputlb.c memory: split memory_region_from_host from qemu_ram_addr_from_host 2018-02-24 16:06:49 -05:00
exec.c exec: hide mr->ram_addr from qemu_get_ram_ptr users 2018-02-24 16:17:49 -05:00
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 hw: remove pio_addr_t 2018-02-24 02:43:16 -05:00
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 include/qemu/osdep.h: Don't include qapi/error.h 2018-02-21 23:08:18 -05:00
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 log: move qemu_log_close/qemu_log_flush from header to log.c 2018-02-22 11:13:17 -05:00
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 hw: explicitly include qemu/log.h 2018-02-24 02:00:45 -05:00
vl.h
x86_64.h memory: Provide memory_region_init_rom() 2018-02-25 00:28:17 -05:00