scripts/kernel-doc: parse __ETHTOOL_DECLARE_LINK_MODE_MASK
[qemu/ar7.git] / accel / qtest / qtest.c
blobb282cea5cfc6f7e34e3cb70c8a696a0f02b024aa
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 "sysemu/accel.h"
21 #include "sysemu/qtest.h"
22 #include "sysemu/cpus.h"
23 #include "sysemu/cpu-timers.h"
24 #include "qemu/guest-random.h"
25 #include "qemu/main-loop.h"
26 #include "hw/core/cpu.h"
28 const CpusAccel qtest_cpus = {
29 .create_vcpu_thread = dummy_start_vcpu_thread,
30 .get_virtual_clock = qtest_get_virtual_clock,
33 static int qtest_init_accel(MachineState *ms)
35 cpus_register_accel(&qtest_cpus);
36 return 0;
39 static void qtest_accel_class_init(ObjectClass *oc, void *data)
41 AccelClass *ac = ACCEL_CLASS(oc);
42 ac->name = "QTest";
43 ac->init_machine = qtest_init_accel;
44 ac->allowed = &qtest_allowed;
47 #define TYPE_QTEST_ACCEL ACCEL_CLASS_NAME("qtest")
49 static const TypeInfo qtest_accel_type = {
50 .name = TYPE_QTEST_ACCEL,
51 .parent = TYPE_ACCEL,
52 .class_init = qtest_accel_class_init,
55 static void qtest_type_init(void)
57 type_register_static(&qtest_accel_type);
60 type_init(qtest_type_init);