bsd-user: Add target.h for aarch64.
authorWarner Losh <imp@bsdimp.com>
Wed, 24 Jul 2024 21:57:44 +0000 (15:57 -0600)
committerWarner Losh <imp@bsdimp.com>
Wed, 24 Jul 2024 22:02:07 +0000 (16:02 -0600)
For aarch64, it's a 64-bit API, so there's no pairing of registers for
64-bit values.

Signed-off-by: Warner Losh <imp@bsdimp.com>
bsd-user/aarch64/target.h [new file with mode: 0644]

diff --git a/bsd-user/aarch64/target.h b/bsd-user/aarch64/target.h
new file mode 100644 (file)
index 0000000..702aeb7
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Aarch64 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
+
+/*
+ * aaarch64 ABI does not 'lump' the registers for 64-bit args.
+ */
+static inline bool regpairs_aligned(void *cpu_env)
+{
+    return false;
+}
+
+#endif /* TARGET_H */