--- /dev/null
+/*
+ * QOM type definitions for riscv32 / riscv64 machines
+ *
+ * Copyright (c) rev.ng Labs Srl.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef HW_RISCV_MACHINES_QOM_H
+#define HW_RISCV_MACHINES_QOM_H
+
+#include "hw/core/boards.h"
+
+#define TYPE_TARGET_RISCV32_MACHINE \
+ "target-info-riscv32-machine"
+
+#define TYPE_TARGET_RISCV64_MACHINE \
+ "target-info-riscv64-machine"
+
+#endif
#include "qemu/target-info-init.h"
#include "qemu/target-info-qom.h"
#include "hw/arm/machines-qom.h"
+#include "hw/riscv/machines-qom.h"
static const TypeInfo target_info_types[] = {
{
.name = TYPE_TARGET_AARCH64_MACHINE,
.parent = TYPE_INTERFACE,
},
+ {
+ .name = TYPE_TARGET_RISCV32_MACHINE,
+ .parent = TYPE_INTERFACE,
+ },
+ {
+ .name = TYPE_TARGET_RISCV64_MACHINE,
+ .parent = TYPE_INTERFACE,
+ },
};
DEFINE_TYPES(target_info_types)