qemu-e2k/accel/tcg
Markus Armbruster b21e238037 Use g_new() & friends where that makes obvious sense
g_new(T, n) is neater than g_malloc(sizeof(T) * n).  It's also safer,
for two reasons.  One, it catches multiplication overflowing size_t.
Two, it returns T * rather than void *, which lets the compiler catch
more type errors.

This commit only touches allocations with size arguments of the form
sizeof(T).

Patch created mechanically with:

    $ spatch --in-place --sp-file scripts/coccinelle/use-g_new-etc.cocci \
	     --macro-file scripts/cocci-macro-file.h FILES...

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20220315144156.1595462-4-armbru@redhat.com>
Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
2022-03-21 15:44:44 +01:00
..
atomic_common.c.inc tracing: remove TCG memory access tracing 2022-02-09 12:08:42 +00:00
atomic_template.h tracing: remove TCG memory access tracing 2022-02-09 12:08:42 +00:00
cpu-exec-common.c
cpu-exec.c accel/tcg: Remove pointless CPUArchState casts 2022-03-06 22:47:52 +01:00
cputlb.c accel/tcg: Fix cpu_ldq_be_mmu typo 2022-03-16 08:43:10 +01:00
hmp.c qapi: introduce x-query-opcount QMP command 2021-11-02 15:57:20 +00:00
internal.h
ldst_common.c.inc exec/memop: Adding signedness to quad definitions 2022-01-08 15:46:10 +10:00
meson.build meson: remove useless libdl test 2021-11-16 16:19:53 +00:00
plugin-gen.c plugins: move reset of plugin data to tb_start 2022-02-09 13:26:29 +00:00
plugin-helpers.h
tb-context.h tcg: Move tb_phys_invalidate_count to tb_ctx 2021-07-09 09:38:33 -07:00
tb-hash.h
tcg-accel-ops-icount.c misc: Add missing "sysemu/cpu-timers.h" include 2022-03-06 13:15:42 +01:00
tcg-accel-ops-icount.h
tcg-accel-ops-mttcg.c Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
tcg-accel-ops-mttcg.h
tcg-accel-ops-rr.c Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
tcg-accel-ops-rr.h
tcg-accel-ops.c misc: Add missing "sysemu/cpu-timers.h" include 2022-03-06 13:15:42 +01:00
tcg-accel-ops.h
tcg-all.c accel: add tcg module annotations 2021-07-09 18:21:33 +02:00
tcg-runtime-gvec.c
tcg-runtime.c accel/tcg: Move helper_lookup_tb_ptr to cpu-exec.c 2021-07-09 20:23:06 -07:00
tcg-runtime.h accel/tcg: Standardize atomic helpers on softmmu api 2021-07-21 07:45:38 -10:00
trace-events
trace.h
translate-all.c include: Move qemu_[id]cache_* declarations to new qemu/cacheinfo.h 2022-02-21 13:30:20 +00:00
translator.c plugins: try and make plugin_insn_append more ergonomic 2021-11-04 10:32:01 +00:00
user-exec-stub.c
user-exec.c tracing: remove TCG memory access tracing 2022-02-09 12:08:42 +00:00