Skip to content

Commit

Permalink
bsd-user: Add target.h for aarch64.
Browse files Browse the repository at this point in the history
For aarch64, it's a 64-bit API, so there's no pairing of registers for
64-bit values.

Signed-off-by: Warner Losh <[email protected]>
  • Loading branch information
bsdimp committed Jul 24, 2024
1 parent afdb6be commit ec018b7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bsd-user/aarch64/target.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Aarch64 general target stuff that's common to all aarch details
*
* Copyright (c) 2022 M. Warner Losh <[email protected]>
*
* 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 */

0 comments on commit ec018b7

Please sign in to comment.