On 3/5/26 2:06 AM, Florian Hofhammer wrote:
The test plugin intercepts execution in different contexts. Without the
plugin, any of the implemented test functions would trigger an assert
and fail. With the plugin, control flow is redirected to skip the assert
and return cleanly via the qemu_plugin_set_pc() API.

Signed-off-by: Pierrick Bouvier <[email protected]>
Signed-off-by: Florian Hofhammer <[email protected]>
---
  MAINTAINERS                                        |   1 +
  tests/tcg/arm/Makefile.target                      |   6 +
  tests/tcg/hexagon/Makefile.target                  |   8 ++
  tests/tcg/multiarch/Makefile.target                |  17 ++-
  .../multiarch/{ => plugin}/check-plugin-output.sh  |   0
  .../{ => plugin}/test-plugin-mem-access.c          |   0
  tests/tcg/multiarch/plugin/test-plugin-set-pc.c    | 134 +++++++++++++++++++++
  tests/tcg/plugins/meson.build                      |   1 +
  tests/tcg/plugins/setpc.c                          | 109 +++++++++++++++++
  9 files changed, 273 insertions(+), 3 deletions(-)


Thanks, it looks good!
Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to