diff options
author | Warner Losh <imp@bsdimp.com> | 2024-07-24 15:57:44 -0600 |
---|---|---|
committer | Warner Losh <imp@bsdimp.com> | 2024-07-24 16:02:07 -0600 |
commit | ec018b76798e1196882ebcbf3df15e6d86ac9d7c (patch) | |
tree | 9ac6e398bfa4b343b57b9461f6d7f51c9ea4f298 /bsd-user/aarch64 | |
parent | afdb6be1bd8528395af65a087bd668bf7a42ab99 (diff) |
bsd-user: Add target.h for aarch64.
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>
Diffstat (limited to 'bsd-user/aarch64')
-rw-r--r-- | bsd-user/aarch64/target.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bsd-user/aarch64/target.h b/bsd-user/aarch64/target.h new file mode 100644 index 0000000000..702aeb7fc5 --- /dev/null +++ b/bsd-user/aarch64/target.h @@ -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 */ |