mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
plugins/loader: compile loader only once
There is very little in loader that is different between builds save for a tiny user/system mode difference in the plugin_info structure. Create two new files, user and system to hold mode specific helpers and move loader into common_ss. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250304222439.2035603-26-alex.bennee@linaro.org>
This commit is contained in:
parent
5dd09b8157
commit
8c15f6e435
5 changed files with 57 additions and 12 deletions
|
@ -119,4 +119,10 @@ struct qemu_plugin_scoreboard *plugin_scoreboard_new(size_t element_size);
|
|||
|
||||
void plugin_scoreboard_free(struct qemu_plugin_scoreboard *score);
|
||||
|
||||
/**
|
||||
* qemu_plugin_fillin_mode_info() - populate mode specific info
|
||||
* info: pointer to qemu_info_t structure
|
||||
*/
|
||||
void qemu_plugin_fillin_mode_info(qemu_info_t *info);
|
||||
|
||||
#endif /* PLUGIN_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue