xref: /openbmc/qemu/target/loongarch/cpu-qom.h (revision 2df1eb27)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * QEMU LoongArch CPU QOM header (target agnostic)
4  *
5  * Copyright (c) 2021 Loongson Technology Corporation Limited
6  */
7 
8 #ifndef LOONGARCH_CPU_QOM_H
9 #define LOONGARCH_CPU_QOM_H
10 
11 #include "hw/core/cpu.h"
12 
13 #define TYPE_LOONGARCH_CPU "loongarch-cpu"
14 #define TYPE_LOONGARCH32_CPU "loongarch32-cpu"
15 #define TYPE_LOONGARCH64_CPU "loongarch64-cpu"
16 
17 OBJECT_DECLARE_CPU_TYPE(LoongArchCPU, LoongArchCPUClass,
18                         LOONGARCH_CPU)
19 
20 #define LOONGARCH_CPU_TYPE_SUFFIX "-" TYPE_LOONGARCH_CPU
21 #define LOONGARCH_CPU_TYPE_NAME(model) model LOONGARCH_CPU_TYPE_SUFFIX
22 
23 #endif
24