1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * QEMU LoongArch CPU QOM header (target agnostic)
5 * Copyright (c) 2021 Loongson Technology Corporation Limited
8 #ifndef LOONGARCH_CPU_QOM_H
9 #define LOONGARCH_CPU_QOM_H
11 #include "hw/core/cpu.h"
13 #define TYPE_LOONGARCH_CPU "loongarch-cpu"
14 #define TYPE_LOONGARCH32_CPU "loongarch32-cpu"
15 #define TYPE_LOONGARCH64_CPU "loongarch64-cpu"
17 OBJECT_DECLARE_CPU_TYPE(LoongArchCPU
, LoongArchCPUClass
,
20 #define LOONGARCH_CPU_TYPE_SUFFIX "-" TYPE_LOONGARCH_CPU
21 #define LOONGARCH_CPU_TYPE_NAME(model) model LOONGARCH_CPU_TYPE_SUFFIX