Ok. attached here:
From 62d742713b0d6ed67fad52821541a7d83f4ce702 Mon Sep 17 00:00:00 2001
From: Funda Wang <[email protected]>
Date: Sun, 12 Jan 2025 23:02:47 +0800
Subject: [PATCH] support sw_64 arch
---
config.guess | 8 ++++++++
config.sub | 1 +
2 files changed, 9 insertions(+)
diff --git a/config.guess b/config.guess
index 48a6846..b8fc0ac 100755
--- a/config.guess
+++ b/config.guess
@@ -1194,6 +1186,14 @@ EOF
sparc:Linux:*:* | sparc64:Linux:*:*)
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;;
+ sw_64:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo
2>/dev/null` in
+ sw) UNAME_MACHINE=sw_64 ;;
+ esac
+ objdump --private-headers /bin/sh | grep -q ld.so.1
+ if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
+ GUESS=$UNAME_MACHINE-sunway-linux-$LIBC
+ ;;
tile*:Linux:*:*)
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;;
diff --git a/config.sub b/config.sub
index 4aaae46..d49ee9b 100755
--- a/config.sub
+++ b/config.sub
@@ -1432,6 +1431,7 @@ case $cpu-$vendor in
| sparcv9v \
| spu \
| sv1 \
+ | sw_64 \
| sx* \
| tahoe \
| thumbv7* \
--
2.46.0
At 2025-01-13 22:26:54, "Zack Weinberg" <[email protected]> wrote:
>On Sun, Jan 12, 2025, at 11:06 AM, Funda Wang wrote:
>> As you may know, there has been a new architecture named "sw_64", which
>> is used by ShenWei[1] chips inspired by DEC Alpha.
>>
>> I've proposed a patch[2] against config.guess and config.sub, which will
>> allow
>> sw_64 be recognized so that software based on autotools may build correctly
>> on it.
>
>Please send the actual patch to the mailing list, not just a link to the patch.
>Then be prepared to wait for several months. autotools is currently a spare
>time project for everyone involved and we do not have very much spare time at
>present.
>
>zw