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: 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>
This commit is contained in:
Laurent Vivier 2018-05-10 01:11:23 +02:00
parent 0562384910
commit 9a93c152fc
2 changed files with 2 additions and 2 deletions

View 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

View 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