[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/18] bsd-user: Add generic RISC-V64 target definitions
|
From: |
Ajeet Singh |
|
Subject: |
[PATCH 13/18] bsd-user: Add generic RISC-V64 target definitions |
|
Date: |
Fri, 2 Aug 2024 18:34:18 +1000 |
From: Warner Losh <imp@bsdimp.com>
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 <imp@bsdimp.com>
Signed-off-by: Ajeet Singh <itachis@FreeBSD.org>
---
bsd-user/riscv/target.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 bsd-user/riscv/target.h
diff --git a/bsd-user/riscv/target.h b/bsd-user/riscv/target.h
new file mode 100644
index 0000000000..036ddd185e
--- /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 <imp@bsdimp.com>
+ *
+ * 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 */
--
2.34.1
- Re: [PATCH 08/18] bsd-user: Add RISC-V signal trampoline setup function, (continued)
- [PATCH 09/18] bsd-user: Implement RISC-V sysarch system call emulation, Ajeet Singh, 2024/08/02
- [PATCH 10/18] bsd-user: Add RISC-V thread setup and initialization support, Ajeet Singh, 2024/08/02
- [PATCH 11/18] bsd-user: Define RISC-V VM parameters and helper functions, Ajeet Singh, 2024/08/02
- [PATCH 12/18] bsd-user: Define RISC-V system call structures and constants, Ajeet Singh, 2024/08/02
- [PATCH 13/18] bsd-user: Add generic RISC-V64 target definitions,
Ajeet Singh <=
- [PATCH 14/18] bsd-user: Define RISC-V signal handling structures and constants, Ajeet Singh, 2024/08/02
- [PATCH 15/18] bsd-user: Implement RISC-V signal trampoline setup functions, Ajeet Singh, 2024/08/02
- [PATCH 16/18] bsd-user: Implement 'get_mcontext' for RISC-V, Ajeet Singh, 2024/08/02
- [PATCH 17/18] bsd-user: Implement set_mcontext and get_ucontext_sigreturn for RISCV, Ajeet Singh, 2024/08/02