QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
607 B
30 lines
607 B
/*
|
|
* 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;
|
|
}
|
|
|