38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
From 416542f9abb6a9928ef883a853fb542a96ffcfdf Mon Sep 17 00:00:00 2001
|
|
From: yangchenguang <yangchenguang@kylinsec.com.cn>
|
|
Date: Tue, 9 May 2023 08:46:09 +0800
|
|
Subject: [PATCH] Add loongarch64 support
|
|
|
|
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
|
|
---
|
|
include/libEMF/wine/winnt.h | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/include/libEMF/wine/winnt.h b/include/libEMF/wine/winnt.h
|
|
index 39e2f90..9b88e7a 100644
|
|
--- a/include/libEMF/wine/winnt.h
|
|
+++ b/include/libEMF/wine/winnt.h
|
|
@@ -69,6 +69,10 @@
|
|
# define WORDS_BIGENDIAN
|
|
# define BITFIELDS_BIGENDIAN
|
|
# undef ALLOW_UNALIGNED_ACCESS
|
|
+#elif defined(__loongarch__)
|
|
+# define WORDS_BIGENDIAN
|
|
+# define BITFIELDS_BIGENDIAN
|
|
+# undef ALLOW_UNALIGNED_ACCESS
|
|
#elif !defined(RC_INVOKED)
|
|
# error Unknown CPU architecture!
|
|
#endif
|
|
@@ -1021,7 +1025,7 @@ typedef struct _CONTEXT
|
|
#endif /* _ALPHA_ */
|
|
|
|
/* Mips context definitions */
|
|
-#if defined(_MIPS_) || defined(__MIPS__) || defined(__mips__)
|
|
+#if defined(_MIPS_) || defined(__MIPS__) || defined(__mips__) || defined(__loongarch__)
|
|
|
|
#define CONTEXT_R4000 0x00010000
|
|
|
|
--
|
|
2.33.0
|
|
|