qemu/plugins
Alex Bennée 8df5e27cf7 plugins: add an API to read registers
We can only request a list of registers once the vCPU has been
initialised so the user needs to use either call the get function on
vCPU initialisation or during the translation phase.

We don't expose the reg number to the plugin instead hiding it behind
an opaque handle. For now this is just the gdb_regnum encapsulated in
an anonymous GPOINTER but in future as we add more state for plugins
to track we can expand it.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1706
Based-on:  <20231025093128.33116-18-akihiko.odaki@daynix.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240227144335.1196131-24-alex.bennee@linaro.org>
2024-02-28 09:11:42 +00:00
..
api.c plugins: add an API to read registers 2024-02-28 09:11:42 +00:00
core.c plugins: create CPUPluginState and migrate plugin_mask 2024-02-28 09:11:42 +00:00
loader.c misc: Clean up includes 2024-01-30 21:20:20 +03:00
meson.build configure, meson: rename targetos to host_os 2023-12-31 09:11:29 +01:00
plugin.h plugins: add qemu_plugin_num_vcpus function 2024-02-28 09:11:36 +00:00
qemu-plugins.symbols plugins: add an API to read registers 2024-02-28 09:11:42 +00:00