master
h 23 lines 478 Bytes
Raw
1 /*
2 * Accelerator interface, specializes CPUClass
3 *
4 * Copyright 2021 SUSE LLC
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9 #ifndef ACCEL_CPU_H
10 #define ACCEL_CPU_H
11
12 #include "qom/object.h"
13 #include "hw/core/cpu.h"
14
15 typedef struct AccelCPUClass {
16 ObjectClass parent_class;
17
18 void (*cpu_class_init)(CPUClass *cc);
19 void (*cpu_instance_init)(CPUState *cpu);
20 bool (*cpu_target_realize)(CPUState *cpu, Error **errp);
21 } AccelCPUClass;
22
23 #endif /* ACCEL_CPU_H */