From bd21d7b775c68a2c195785f4e5ec35e437e53a5e Mon Sep 17 00:00:00 2001
From: mahailiang <mahailiang@uniontech.com>
Date: Tue, 11 Feb 2025 14:11:43 +0800
Subject: [PATCH] add support sw_64

---
 build-aux/config.guess | 3 +++
 build-aux/config.sub   | 1 +
 data/cputable          | 1 +
 3 files changed, 5 insertions(+)

diff --git a/build-aux/config.guess b/build-aux/config.guess
index 7f76b62..f67c66a 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -1039,6 +1039,9 @@ EOF
     loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
 	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
 	;;
+    sw64:Linux:*:*)
+	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
+	;;
     m32r*:Linux:*:*)
 	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
 	;;
diff --git a/build-aux/config.sub b/build-aux/config.sub
index dba16e8..1f8c5c3 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -1209,6 +1209,7 @@ case $cpu-$vendor in
 			| lm32 \
 			| loongarch32 | loongarch64 | loongarchx32 \
 			| m32c | m32r | m32rle \
+                        | sw_64 \
 			| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
 			| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
 			| m88110 | m88k | maxq | mb | mcore | mep | metag \
diff --git a/data/cputable b/data/cputable
index 7b1ee2c..e4c8663 100644
--- a/data/cputable
+++ b/data/cputable
@@ -54,4 +54,5 @@ sh4		sh4		sh4			32	little
 sh4eb		sh4eb		sh4eb			32	big
 sparc		sparc		sparc			32	big
 sparc64		sparc64		sparc64			64	big
+sw_64		sw_64		sw_64			64	little
 tilegx		tilegx		tilegx			64	little
-- 
2.43.0

