mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-03 06:40:40 -07:00
This patch adds a plugin that exercises the virtual and hardware memory read-write API functions added in a previous patch. The plugin takes a target and patch byte sequence, and will overwrite any instruction matching the target byte sequence with the patch. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Rowan Hart <rowanbhart@gmail.com> Message-ID: <20250624175351.440780-8-rowanbhart@gmail.com> [AJB: tweak Makefile, use uintptr_t for pointer stuffing] Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-ID: <20250627112512.1880708-12-alex.bennee@linaro.org>
23 lines
822 B
Meson
23 lines
822 B
Meson
t = []
|
|
if get_option('plugins')
|
|
foreach i : ['bb', 'empty', 'inline', 'insn', 'mem', 'reset', 'syscall', 'patch']
|
|
if host_os == 'windows'
|
|
t += shared_module(i, files(i + '.c') + '../../../contrib/plugins/win32_linker.c',
|
|
include_directories: '../../../include/qemu',
|
|
link_depends: [win32_qemu_plugin_api_lib],
|
|
link_args: win32_qemu_plugin_api_link_flags,
|
|
dependencies: glib)
|
|
else
|
|
t += shared_module(i, files(i + '.c'),
|
|
include_directories: '../../../include/qemu',
|
|
dependencies: glib)
|
|
endif
|
|
endforeach
|
|
endif
|
|
if t.length() > 0
|
|
alias_target('test-plugins', t)
|
|
else
|
|
run_target('test-plugins', command: [python, '-c', ''])
|
|
endif
|
|
|
|
plugin_modules += t
|