]> Git Repo - qemu.git/blob - accel/accel-user.c
works with less than base ISA qemu-system-riscv32 -M virt -bios none -kernel output...
[qemu.git] / accel / accel-user.c
1 /*
2  * QEMU accel class, user-mode components
3  *
4  * Copyright 2021 SUSE LLC
5  *
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  */
9
10 #include "qemu/osdep.h"
11 #include "qemu/accel.h"
12
13 AccelState *current_accel(void)
14 {
15     static AccelState *accel;
16
17     if (!accel) {
18         AccelClass *ac = accel_find("tcg");
19
20         g_assert(ac != NULL);
21         accel = ACCEL(object_new_with_class(OBJECT_CLASS(ac)));
22     }
23     return accel;
24 }
This page took 0.024918 seconds and 4 git commands to generate.