29 lines
854 B
Diff
29 lines
854 B
Diff
From 1c44db6dc55de3d3414d6a0da0c7f4df7a65320d Mon Sep 17 00:00:00 2001
|
|
From: Xin Shi <shixin21@huawei.com>
|
|
Date: Fri, 26 May 2023 12:07:10 +0800
|
|
Subject: [PATCH] fix AARCH64EB support
|
|
|
|
Signed-off-by: Xin Shi <shixin21@huawei.com>
|
|
---
|
|
src/aarch64/ffi.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c
|
|
index 1ebf43c..a8820a3 100644
|
|
--- a/src/aarch64/ffi.c
|
|
+++ b/src/aarch64/ffi.c
|
|
@@ -690,6 +690,10 @@ ffi_call_int (ffi_cif *cif, void (*fn)(void), void *orig_rvalue,
|
|
}
|
|
state.nsrn = N_V_ARG_REG;
|
|
dest = allocate_to_stack (&state, stack, ty->alignment, s);
|
|
+#ifdef __AARCH64EB__
|
|
+ if (t == FFI_TYPE_FLOAT)
|
|
+ dest = dest +4;
|
|
+#endif
|
|
#ifdef _M_ARM64 /* for handling armasm calling convention */
|
|
}
|
|
#endif /* for handling armasm calling convention */
|
|
--
|
|
2.27.0
|
|
|