mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
Defines TargetInfo for 32- and 64-bit riscv binaries. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Anton Johansson <anjo@rev.ng> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20260520-hw-riscv-cpu-int-v3-6-d1123ea63d9c@rev.ng> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
27 lines
703 B
C
27 lines
703 B
C
/*
|
|
* QEMU binary/target API (qemu-system-riscv64)
|
|
*
|
|
* Copyright (c) rev.ng Labs Srl.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu/target-info-impl.h"
|
|
#include "qemu/target-info-init.h"
|
|
#include "hw/riscv/machines-qom.h"
|
|
#include "target/riscv/cpu-qom.h"
|
|
#include "target/riscv/cpu-param.h"
|
|
|
|
static const TargetInfo target_info_riscv64_system = {
|
|
.target_name = "riscv64",
|
|
.target_arch = SYS_EMU_TARGET_RISCV64,
|
|
.long_bits = 64,
|
|
.cpu_type = TYPE_RISCV_CPU,
|
|
.machine_typename = TYPE_TARGET_RISCV64_MACHINE,
|
|
.endianness = ENDIAN_MODE_LITTLE,
|
|
.page_bits_init = TARGET_PAGE_BITS,
|
|
};
|
|
|
|
target_info_init(target_info_riscv64_system)
|