linux-user: fix UNAME_MACHINE for sparc/sparc64
authorLaurent Vivier <laurent@vivier.eu>
Wed, 9 May 2018 23:11:23 +0000 (01:11 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 11 May 2018 17:05:38 +0000 (19:05 +0200)
"sun4" is not recognized by config.guess.
linux defines sparc and sparc64 in arch/sparc/Makefile.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Message-Id: <20180509231123.20864-7-laurent@vivier.eu>

linux-user/sparc/target_syscall.h
linux-user/sparc64/target_syscall.h

index 3725875fcfc3635c6f6aca6732a9acf9c7c0661e..b9160a771baac3abf7f578d943974ab468a9ca4b 100644 (file)
@@ -11,7 +11,7 @@ struct target_pt_regs {
        abi_ulong u_regs[16];
 };
 
-#define UNAME_MACHINE "sun4"
+#define UNAME_MACHINE "sparc"
 #define UNAME_MINIMUM_RELEASE "2.6.32"
 
 /* SPARC kernels don't define this in their Kconfig, but they have the
index 34f49df4a1237b5086629e2744e00fa16c74a095..3073a23e03ae8f38e09717d3164a93b85a426c18 100644 (file)
@@ -12,7 +12,7 @@ struct target_pt_regs {
        abi_ulong fprs;
 };
 
-#define UNAME_MACHINE "sun4u"
+#define UNAME_MACHINE "sparc64"
 #define UNAME_MINIMUM_RELEASE "2.6.32"
 
 /* SPARC kernels don't define this in their Kconfig, but they have the