qemu-patch-raspberry4/accel/tcg
Emilio G. Cota 38b47b19ec plugin-gen: add module for TCG-related code
We first inject empty instrumentation from translator_loop.
After translation, we go through the plugins to see what
they want to register for, filling in the empty instrumentation.
If if turns out that some instrumentation remains unused, we
remove it.

This approach supports the following features:

- Inlining TCG code for simple operations. Note that we do not
  export TCG ops to plugins. Instead, we give them a C API to
  insert inlined ops. So far we only support adding an immediate
  to a u64, e.g. to count events.

- "Direct" callbacks. These are callbacks that do not go via
  a helper. Instead, the helper is defined at run-time, so that
  the plugin code is directly called from TCG. This makes direct
  callbacks as efficient as possible; they are therefore used
  for very frequent events, e.g. memory callbacks.

- Passing the host address to memory callbacks. Most of this
  is implemented in a later patch though.

- Instrumentation of memory accesses performed from helpers.
  See the corresponding comment, as well as a later patch.

Signed-off-by: Emilio G. Cota <cota@braap.org>
[AJB: add alloc_tcg_plugin_context, use glib, rm hwaddr]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
2019-10-28 15:12:38 +00:00
..
atomic_template.h trace: add mmu_index to mem_info 2019-10-28 15:12:38 +00:00
cpu-exec-common.c qemu-common: Move tcg_enabled() etc. to sysemu/tcg.h 2019-06-11 20:22:09 +02:00
cpu-exec.c cpu: introduce cpu_in_exclusive_context() 2019-10-28 15:12:38 +00:00
cputlb.c cputlb: introduce get_page_addr_code_hostp 2019-10-28 15:12:38 +00:00
Makefile.objs plugin-gen: add module for TCG-related code 2019-10-28 15:12:38 +00:00
plugin-gen.c plugin-gen: add module for TCG-related code 2019-10-28 15:12:38 +00:00
plugin-helpers.h plugin-gen: add module for TCG-related code 2019-10-28 15:12:38 +00:00
tcg-all.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
tcg-runtime-gvec.c tcg: Fix typos in helper_gvec_sar{8,32,64}v 2019-06-12 21:08:38 -07:00
tcg-runtime.c cpu: Replace ENV_GET_CPU with env_cpu 2019-06-10 07:03:34 -07:00
tcg-runtime.h tcg: Add support for vector bitwise select 2019-05-22 15:09:43 -04:00
trace-events trace-events: Consistently point to docs/devel/tracing.txt 2019-03-22 16:17:37 +00:00
translate-all.c translate-all: use cpu_in_exclusive_work_context() in tb_flush 2019-10-28 15:12:38 +00:00
translate-all.h cputlb: Pass retaddr to tb_check_watchpoint 2019-09-25 10:56:28 -07:00
translator.c icount: remove unnecessary gen_io_end calls 2019-08-20 17:26:22 +02:00
user-exec-stub.c hw/core: Move cpu.c, cpu.h from qom/ to hw/core/ 2019-08-21 13:24:01 +02:00
user-exec.c trace: add mmu_index to mem_info 2019-10-28 15:12:38 +00:00