Commit 9a93c152 authored by Laurent Vivier's avatar Laurent Vivier
Browse files

linux-user: fix UNAME_MACHINE for sparc/sparc64



"sun4" is not recognized by config.guess.
linux defines sparc and sparc64 in arch/sparc/Makefile.

Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Message-Id: <20180509231123.20864-7-laurent@vivier.eu>
parent 05623849
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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