923a60
From 3df99b05df12b73e4d081ee223f9b35ed33f47ca Mon Sep 17 00:00:00 2001
923a60
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
923a60
Date: Thu, 5 Mar 2015 00:07:33 +0100
923a60
Subject: [PATCH] Use correct uname identifiers in arch_map for SuperH
923a60
 architecture
923a60
923a60
https://bugs.freedesktop.org/show_bug.cgi?id=89421
923a60
(cherry picked from commit 3a867c6a2361c8af943d3ed452da6e8623a3f65d)
923a60
---
923a60
 src/shared/architecture.c | 8 ++++++--
923a60
 1 file changed, 6 insertions(+), 2 deletions(-)
923a60
923a60
diff --git a/src/shared/architecture.c b/src/shared/architecture.c
923a60
index 34c5a53fa9..884abdd3ea 100644
923a60
--- a/src/shared/architecture.c
923a60
+++ b/src/shared/architecture.c
923a60
@@ -108,8 +108,12 @@ int uname_architecture(void) {
923a60
                 { "armv8l",     ARCHITECTURE_ARM      },
923a60
                 { "armv8b",     ARCHITECTURE_ARM_BE   },
923a60
 #elif defined(__sh__) || defined(__sh64__)
923a60
-                { "sh64",       ARCHITECTURE_SH64     },
923a60
-                { "sh",         ARCHITECTURE_SH       },
923a60
+                { "sh5",        ARCHITECTURE_SH64     },
923a60
+                { "sh2",        ARCHITECTURE_SH       },
923a60
+                { "sh2a",       ARCHITECTURE_SH       },
923a60
+                { "sh3",        ARCHITECTURE_SH       },
923a60
+                { "sh4",        ARCHITECTURE_SH       },
923a60
+                { "sh4a",       ARCHITECTURE_SH       },
923a60
 #elif defined(__m68k__)
923a60
                 { "m68k",       ARCHITECTURE_M68K     },
923a60
 #elif defined(__tilegx__)