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