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