2011-12-14 02:35:41 +01:00
|
|
|
From 164cf539481164978d9fa6ad69eb20cda7dc0e12 Mon Sep 17 00:00:00 2001
|
2011-02-16 20:30:51 +01:00
|
|
|
From: Ulrich Hecht <uli@suse.de>
|
|
|
|
Date: Wed, 25 Aug 2010 14:23:43 +0200
|
2012-02-01 00:10:40 +01:00
|
|
|
Subject: [PATCH] fix mipsn32*-linux-user builds
|
2011-02-16 20:30:51 +01:00
|
|
|
|
|
|
|
Signed-off-by: Ulrich Hecht <uli@suse.de>
|
|
|
|
---
|
|
|
|
configure | 2 ++
|
|
|
|
default-configs/mipsn32-linux-user.mak | 1 +
|
|
|
|
default-configs/mipsn32el-linux-user.mak | 1 +
|
|
|
|
linux-user/mipsn32/syscall.h | 3 ++-
|
|
|
|
4 files changed, 6 insertions(+), 1 deletions(-)
|
|
|
|
create mode 100644 default-configs/mipsn32-linux-user.mak
|
|
|
|
create mode 100644 default-configs/mipsn32el-linux-user.mak
|
|
|
|
|
|
|
|
diff --git a/configure b/configure
|
2011-12-11 03:42:09 +01:00
|
|
|
index ac4840d..e9cad7f 100755
|
2011-02-16 20:30:51 +01:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2011-12-11 03:42:09 +01:00
|
|
|
@@ -915,6 +915,8 @@ microblaze-linux-user \
|
|
|
|
microblazeel-linux-user \
|
2011-02-16 20:30:51 +01:00
|
|
|
mips-linux-user \
|
|
|
|
mipsel-linux-user \
|
|
|
|
+mipsn32-linux-user \
|
|
|
|
+mipsn32el-linux-user \
|
|
|
|
ppc-linux-user \
|
|
|
|
ppc64-linux-user \
|
|
|
|
ppc64abi32-linux-user \
|
|
|
|
diff --git a/default-configs/mipsn32-linux-user.mak b/default-configs/mipsn32-linux-user.mak
|
|
|
|
new file mode 100644
|
|
|
|
index 0000000..31df570
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/default-configs/mipsn32-linux-user.mak
|
|
|
|
@@ -0,0 +1 @@
|
|
|
|
+# Default configuration for mips-linux-user
|
|
|
|
diff --git a/default-configs/mipsn32el-linux-user.mak b/default-configs/mipsn32el-linux-user.mak
|
|
|
|
new file mode 100644
|
|
|
|
index 0000000..4d0e4af
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/default-configs/mipsn32el-linux-user.mak
|
|
|
|
@@ -0,0 +1 @@
|
|
|
|
+# Default configuration for mipsel-linux-user
|
|
|
|
diff --git a/linux-user/mipsn32/syscall.h b/linux-user/mipsn32/syscall.h
|
|
|
|
index 4ec506c..beeeb3c 100644
|
|
|
|
--- a/linux-user/mipsn32/syscall.h
|
|
|
|
+++ b/linux-user/mipsn32/syscall.h
|
|
|
|
@@ -216,6 +216,7 @@ struct target_pt_regs {
|
|
|
|
#undef TARGET_ENOTRECOVERABLE
|
|
|
|
#define TARGET_ENOTRECOVERABLE 166 /* State not recoverable */
|
|
|
|
|
|
|
|
-
|
|
|
|
+/* Nasty hack: define a fake errno value for use by sigreturn. */
|
|
|
|
+#define TARGET_QEMU_ESIGRETURN 255
|
|
|
|
|
|
|
|
#define UNAME_MACHINE "mips64"
|
|
|
|
--
|
2011-12-11 03:42:09 +01:00
|
|
|
1.6.0.2
|
2011-02-16 20:30:51 +01:00
|
|
|
|