From: Warner Losh Date: Mon, 16 Sep 2024 15:51:14 +0000 (+1000) Subject: bsd-user: Add generic RISC-V64 target definitions X-Git-Tag: v9.2.0-rc0~66^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25b08c4da891648be6a3230e580250ef8015486d;p=thirdparty%2Fqemu.git bsd-user: Add generic RISC-V64 target definitions Added a generic definition for RISC-V64 target-specific details. Implemented the 'regpairs_aligned' function,which returns 'false' to indicate that register pairs are not aligned in the RISC-V64 ABI. Signed-off-by: Warner Losh Signed-off-by: Ajeet Singh Reviewed-by: Richard Henderson Message-ID: <20240916155119.14610-13-itachis@FreeBSD.org> Signed-off-by: Alistair Francis --- diff --git a/bsd-user/riscv/target.h b/bsd-user/riscv/target.h new file mode 100644 index 00000000000..036ddd185e2 --- /dev/null +++ b/bsd-user/riscv/target.h @@ -0,0 +1,20 @@ +/* + * Riscv64 general target stuff that's common to all aarch details + * + * Copyright (c) 2022 M. Warner Losh + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef TARGET_H +#define TARGET_H + +/* + * riscv64 ABI does not 'lump' the registers for 64-bit args. + */ +static inline bool regpairs_aligned(void *cpu_env) +{ + return false; +} + +#endif /* TARGET_H */