aboutsummaryrefslogtreecommitdiff
path: root/include/accel/accel-cpu.h
blob: 9e7eede7c3c404cfa9de60448d4be8b34eff962f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Accelerator interface, specializes CPUClass
 *
 * Copyright 2021 SUSE LLC
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef ACCEL_CPU_H
#define ACCEL_CPU_H

#include "qom/object.h"
#include "hw/core/cpu.h"

typedef struct AccelCPUClass {
    ObjectClass parent_class;

    void (*cpu_class_init)(CPUClass *cc);
    void (*cpu_instance_init)(CPUState *cpu);
    bool (*cpu_target_realize)(CPUState *cpu, Error **errp);
} AccelCPUClass;

#endif /* ACCEL_CPU_H */