hw/arm/exynos4210: Inline sysbus_create_varargs(EXYNOS4210_FIMD)
[qemu/ar7.git] / accel / qtest / qtest.c
blobf6056ac8361e3bdc577bbe76a0ab28bb639912e1
1 /*
2 * QTest accelerator code
4 * Copyright IBM, Corp. 2011
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
14 #include "qemu/osdep.h"
15 #include "qemu/rcu.h"
16 #include "qapi/error.h"
17 #include "qemu/module.h"
18 #include "qemu/option.h"
19 #include "qemu/config-file.h"
20 #include "qemu/accel.h"
21 #include "sysemu/qtest.h"
22 #include "sysemu/cpus.h"
23 #include "qemu/guest-random.h"
24 #include "qemu/main-loop.h"
25 #include "hw/core/cpu.h"
27 static int qtest_init_accel(MachineState *ms)
29 return 0;
32 static void qtest_accel_class_init(ObjectClass *oc, void *data)
34 AccelClass *ac = ACCEL_CLASS(oc);
35 ac->name = "QTest";
36 ac->init_machine = qtest_init_accel;
37 ac->allowed = &qtest_allowed;
40 #define TYPE_QTEST_ACCEL ACCEL_CLASS_NAME("qtest")
42 static const TypeInfo qtest_accel_type = {
43 .name = TYPE_QTEST_ACCEL,
44 .parent = TYPE_ACCEL,
45 .class_init = qtest_accel_class_init,
47 module_obj(TYPE_QTEST_ACCEL);
49 static void qtest_accel_ops_class_init(ObjectClass *oc, void *data)
51 AccelOpsClass *ops = ACCEL_OPS_CLASS(oc);
53 ops->create_vcpu_thread = dummy_start_vcpu_thread;
54 ops->get_virtual_clock = qtest_get_virtual_clock;
57 static const TypeInfo qtest_accel_ops_type = {
58 .name = ACCEL_OPS_NAME("qtest"),
60 .parent = TYPE_ACCEL_OPS,
61 .class_init = qtest_accel_ops_class_init,
62 .abstract = true,
64 module_obj(ACCEL_OPS_NAME("qtest"));
66 static void qtest_type_init(void)
68 type_register_static(&qtest_accel_type);
69 type_register_static(&qtest_accel_ops_type);
72 type_init(qtest_type_init);