summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-11-19 17:17:08 +0100
committerLaurent Vivier2021-02-13 22:50:49 +0100
commit0b72da03001c8c9f077fc019b9651c19a32c4600 (patch)
treeeaaadf7a0900c1496b77ffc237491e66a233e747
parentlinux-user/mips64: Restore setup_frame() for o32 ABI (diff)
downloadqemu-0b72da03001c8c9f077fc019b9651c19a32c4600.tar.gz
qemu-0b72da03001c8c9f077fc019b9651c19a32c4600.tar.xz
qemu-0b72da03001c8c9f077fc019b9651c19a32c4600.zip
linux-user/mips64: Support o32 ABI syscalls
o32 ABI syscalls start at offset 4000. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20201119161710.1985083-3-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r--linux-user/mips64/syscall_nr.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux-user/mips64/syscall_nr.h b/linux-user/mips64/syscall_nr.h
index 672f2fa51c..6579421fa6 100644
--- a/linux-user/mips64/syscall_nr.h
+++ b/linux-user/mips64/syscall_nr.h
@@ -1,4 +1,7 @@
-#ifdef TARGET_ABI_MIPSN32
+#if defined(TARGET_ABI_MIPSO32)
+#define TARGET_SYSCALL_OFFSET 4000
+#include "syscall_o32_nr.h"
+#elif defined(TARGET_ABI_MIPSN32)
#define TARGET_SYSCALL_OFFSET 6000
#include "syscall_n32_nr.h"
#else