59 lines
1.9 KiB
Diff
59 lines
1.9 KiB
Diff
From 4569b209989e09bdebcb6cce809b3fed0f94142c Mon Sep 17 00:00:00 2001
|
|
From: Ulrich Hecht <uli@suse.de>
|
|
Date: Wed, 25 Aug 2010 14:23:43 +0200
|
|
Subject: [PATCH 16/17] fix mipsn32*-linux-user builds
|
|
|
|
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
|
|
index bd1484b..6513d91 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -1010,6 +1010,8 @@ m68k-linux-user \
|
|
microblaze-linux-user \
|
|
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"
|
|
--
|
|
1.7.1
|
|
|