Files
Yaya48 cf256aa081 Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git

Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
2026-08-31 02:15:30 +02:00

47 lines
1.4 KiB
C

/*
* 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"
/*
* Interfaces specifying whether a given QOM object is available in
* qemu-system-riscv32, qemu-system-riscv64, or both.
*/
extern const InterfaceInfo riscv32_machine_interfaces[];
extern const InterfaceInfo riscv64_machine_interfaces[];
extern const InterfaceInfo riscv32_64_machine_interfaces[];
/*
* Helper macros for defining machines available in qemu-system-riscv32,
* qemu-system-riscv64, or both.
*/
#define DEFINE_MACHINE_RISCV32(namestr, machine_initfn) \
DEFINE_MACHINE_WITH_INTERFACE_ARRAY(namestr, machine_initfn, \
riscv32_machine_interfaces)
#define DEFINE_MACHINE_RISCV64(namestr, machine_initfn) \
DEFINE_MACHINE_WITH_INTERFACE_ARRAY(namestr, machine_initfn, \
riscv64_machine_interfaces)
#define DEFINE_MACHINE_RISCV32_64(namestr, machine_initfn) \
DEFINE_MACHINE_WITH_INTERFACE_ARRAY(namestr, machine_initfn, \
riscv32_64_machine_interfaces)
#endif