[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 6/7] linux-user: fix UNAME_MACHINE for sparc/sparc64
From: |
Laurent Vivier |
Subject: |
[Qemu-devel] [PULL 6/7] linux-user: fix UNAME_MACHINE for sparc/sparc64 |
Date: |
Mon, 14 May 2018 20:19:27 +0200 |
"sun4" is not recognized by config.guess.
linux defines sparc and sparc64 in arch/sparc/Makefile.
Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Max Filippov <address@hidden>
Message-Id: <address@hidden>
---
linux-user/sparc/target_syscall.h | 2 +-
linux-user/sparc64/target_syscall.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/linux-user/sparc/target_syscall.h
b/linux-user/sparc/target_syscall.h
index 3725875fcf..b9160a771b 100644
--- a/linux-user/sparc/target_syscall.h
+++ b/linux-user/sparc/target_syscall.h
@@ -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
diff --git a/linux-user/sparc64/target_syscall.h
b/linux-user/sparc64/target_syscall.h
index 34f49df4a1..3073a23e03 100644
--- a/linux-user/sparc64/target_syscall.h
+++ b/linux-user/sparc64/target_syscall.h
@@ -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
--
2.14.3
- [Qemu-devel] [PULL 0/7] Linux user for 2.13 patches, Laurent Vivier, 2018/05/14
- [Qemu-devel] [PULL 1/7] linux-user: define correct fcntl() values for sparc, Laurent Vivier, 2018/05/14
- [Qemu-devel] [PULL 3/7] linux-user: update sparc/syscall_nr.h to linux header 4.16, Laurent Vivier, 2018/05/14
- [Qemu-devel] [PULL 4/7] linux-user: fix conversion of flock/flock64 l_type field, Laurent Vivier, 2018/05/14
- [Qemu-devel] [PULL 6/7] linux-user: fix UNAME_MACHINE for sparc/sparc64,
Laurent Vivier <=
- [Qemu-devel] [PULL 5/7] linux-user: add sparc/sparc64 specific errno, Laurent Vivier, 2018/05/14
- [Qemu-devel] [PULL 7/7] linux-user: correctly align types in thunking code, Laurent Vivier, 2018/05/14
- [Qemu-devel] [PULL 2/7] linux-user: fix flock/flock64 padding, Laurent Vivier, 2018/05/14
- Re: [Qemu-devel] [PULL 0/7] Linux user for 2.13 patches, Peter Maydell, 2018/05/15