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