docs/interop/bitmaps: Clean up a reference to qemu-qmp-ref
[qemu/armbru.git] / accel / accel-user.c
blob22b6a1a1a89fea5a3d79f9bbc774235ff3d978d8
1 /*
2 * QEMU accel class, user-mode components
4 * Copyright 2021 SUSE LLC
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */
10 #include "qemu/osdep.h"
11 #include "qemu/accel.h"
13 AccelState *current_accel(void)
15 static AccelState *accel;
17 if (!accel) {
18 AccelClass *ac = accel_find("tcg");
20 g_assert(ac != NULL);
21 accel = ACCEL(object_new_with_class(OBJECT_CLASS(ac)));
23 return accel;