]> git.ipfire.org Git - thirdparty/qemu.git/commit
plugins/api: split out binary path/start/end/entry code
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 4 Mar 2025 22:24:33 +0000 (22:24 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 10 Mar 2025 10:30:01 +0000 (10:30 +0000)
commit903e870f2453731f9b44ce9734cfcb5509304677
treedbd6836db42b497f83a102162cc91b1edde56db4
parent8c15f6e435a15e90456d26ff26199861369c9d63
plugins/api: split out binary path/start/end/entry code

To move the main api.c to a single build compilation object we need to
start splitting out user and system specific code. As we need to grob
around host headers we move these particular helpers into the *-user
mode directories.

The binary/start/end/entry helpers are all NOPs for system mode.

While using the plugin-api.c.inc trick means we build for both
linux-user and bsd-user the BSD user-mode command line is still
missing -plugin. This can be enabled once we have reliable check-tcg
tests working for the BSDs.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250304222439.2035603-27-alex.bennee@linaro.org>
bsd-user/meson.build
bsd-user/plugin-api.c [new file with mode: 0644]
common-user/plugin-api.c.inc [new file with mode: 0644]
linux-user/meson.build
linux-user/plugin-api.c [new file with mode: 0644]
plugins/api-system.c [new file with mode: 0644]
plugins/api.c
plugins/meson.build