mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00

We want to build more common code, moving objects from meson's specific_ss[] set to common_ss[]. Since the CONFIG_USER_ONLY definitions isn't applied on the common_ss[] set, it is simpler to add an empty accel_init_ops_interfaces() stub on user emulation, removing any CONFIG_USER_ONLY use in accel-target.c. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20250417165430.58213-5-philmd@linaro.org>
30 lines
607 B
C
30 lines
607 B
C
/*
|
|
* QEMU accel class, user-mode components
|
|
*
|
|
* Copyright 2021 SUSE LLC
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu/accel.h"
|
|
#include "accel-internal.h"
|
|
|
|
void accel_init_ops_interfaces(AccelClass *ac)
|
|
{
|
|
/* nothing */
|
|
}
|
|
|
|
AccelState *current_accel(void)
|
|
{
|
|
static AccelState *accel;
|
|
|
|
if (!accel) {
|
|
AccelClass *ac = accel_find("tcg");
|
|
|
|
g_assert(ac != NULL);
|
|
accel = ACCEL(object_new_with_class(OBJECT_CLASS(ac)));
|
|
}
|
|
return accel;
|
|
}
|