Linux user for 3.0 patches
The following changes since commit 392fba9f583223786f844dce9b2e7f9a0ce0147a:
Merge remote-tracking branch 'remotes/stsquad/tags/pull-travis-updates-010618-1' into staging (2018-06-01 17:32:30 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/linux-user-for-3.0-pull-request
for you to fetch changes up to 7ea65371ee6ba714c5b369b38dd608b128dab57c:
linux-user: remove useless #if (2018-06-04 01:30:44 +0200)
----------------------------------------------------------------
move more data to arch specific files
fix SPARC %tick
replace strcpy() by g_strlcpy() in syscall.c
----------------------------------------------------------------
Laurent Vivier (16):
linux-user: SPARC "rd %tick" can be used by user application
linux-user: move generic fcntl definitions to generic/fcntl.h
linux-user: move alpha fcntl definitions to alpha/target_fcntl.h
linux-user: move hppa fcntl definitions to hppa/target_fcntl.h
linux-user: move arm/aarch64/m68k fcntl definitions to
[arm|aarch64|m68k]/target_fcntl.h
linux-user: move mips/mips64 fcntl definitions to mips/target_fcntl.h
linux-user: move ppc fcntl definitions to ppc/target_fcntl.h
linux-user: move sparc/sparc64 fcntl definitions to
sparc/target_fcntl.h
linux-user: move get_sp_from_cpustate() to target_cpu.h
linux-user: move generic signal definitions to generic/signal.h
linux-user: move sparc signal definitions to sparc/target_signal.h
linux-user: move mips signal definitions to mips/target_signal.h
linux-user: move openrisc signal definitions to
openrisc/target_signal.h
linux-user: move alpha signal definitions to alpha/target_signal.h
linux-user: move hppa signal definitions to hppa/target_signal.h
linux-user: remove useless #if
Philippe Mathieu-Daudé (1):
syscall: replace strcpy() by g_strlcpy()
linux-user/aarch64/signal.c | 1 - linux-user/aarch64/target_cpu.h | 4 + linux-user/aarch64/target_fcntl.h | 16 + linux-user/aarch64/target_signal.h | 7 +- linux-user/alpha/signal.c | 1 - linux-user/alpha/target_cpu.h | 4 + linux-user/alpha/target_fcntl.h | 40 +++ linux-user/alpha/target_signal.h | 51 +++- linux-user/arm/signal.c | 1 - linux-user/arm/target_cpu.h | 4 + linux-user/arm/target_fcntl.h | 17 ++ linux-user/arm/target_signal.h | 7 +- linux-user/cris/signal.c | 1 - linux-user/cris/target_cpu.h | 4 + linux-user/cris/target_fcntl.h | 11 + linux-user/cris/target_signal.h | 7 +- linux-user/generic/fcntl.h | 151 ++++++++++ linux-user/generic/signal.h | 57 ++++ linux-user/hppa/signal.c | 1 - linux-user/hppa/target_cpu.h | 8 +- linux-user/hppa/target_fcntl.h | 42 +++ linux-user/hppa/target_signal.h | 50 +++- linux-user/i386/signal.c | 1 - linux-user/i386/target_cpu.h | 4 + linux-user/i386/target_fcntl.h | 11 + linux-user/i386/target_signal.h | 7 +- linux-user/m68k/signal.c | 1 - linux-user/m68k/target_cpu.h | 4 + linux-user/m68k/target_fcntl.h | 17 ++ linux-user/m68k/target_signal.h | 7 +- linux-user/microblaze/signal.c | 1 - linux-user/microblaze/target_cpu.h | 4 + linux-user/microblaze/target_fcntl.h | 11 + linux-user/microblaze/target_signal.h | 7 +- linux-user/mips/signal.c | 1 - linux-user/mips/target_cpu.h | 4 + linux-user/mips/target_fcntl.h | 38 +++ linux-user/mips/target_signal.h | 55 +++- linux-user/mips64/target_fcntl.h | 1 + linux-user/mips64/target_signal.h | 53 +++- linux-user/nios2/signal.c | 1 - linux-user/nios2/target_cpu.h | 4 + linux-user/nios2/target_fcntl.h | 11 + linux-user/nios2/target_signal.h | 8 +- linux-user/openrisc/signal.c | 1 - linux-user/openrisc/target_cpu.h | 4 + linux-user/openrisc/target_fcntl.h | 11 + linux-user/openrisc/target_signal.h | 16 +- linux-user/ppc/signal.c | 1 - linux-user/ppc/target_cpu.h | 5 +- linux-user/ppc/target_fcntl.h | 17 ++ linux-user/ppc/target_signal.h | 7 +- linux-user/qemu.h | 1 - linux-user/riscv/signal.c | 1 - linux-user/riscv/target_cpu.h | 4 + linux-user/riscv/target_fcntl.h | 11 + linux-user/riscv/target_signal.h | 8 +- linux-user/s390x/signal.c | 1 - linux-user/s390x/target_cpu.h | 4 + linux-user/s390x/target_fcntl.h | 11 + linux-user/s390x/target_signal.h | 7 +- linux-user/sh4/signal.c | 1 - linux-user/sh4/target_cpu.h | 4 + linux-user/sh4/target_fcntl.h | 11 + linux-user/sh4/target_signal.h | 7 +- linux-user/signal.c | 1 - linux-user/sparc/signal.c | 1 - linux-user/sparc/target_cpu.h | 11 + linux-user/sparc/target_fcntl.h | 45 +++ linux-user/sparc/target_signal.h | 60 +++- linux-user/sparc64/signal.c | 1 - linux-user/sparc64/target_fcntl.h | 1 + linux-user/sparc64/target_signal.h | 38 +-- linux-user/syscall.c | 3 +- linux-user/syscall_defs.h | 536 +--------------------------------- linux-user/tilegx/signal.c | 1 - linux-user/tilegx/target_cpu.h | 4 + linux-user/tilegx/target_fcntl.h | 11 + linux-user/tilegx/target_signal.h | 8 +- linux-user/x86_64/target_fcntl.h | 11 + linux-user/x86_64/target_signal.h | 8 +- linux-user/xtensa/signal.c | 1 - linux-user/xtensa/target_cpu.h | 4 + linux-user/xtensa/target_fcntl.h | 11 + linux-user/xtensa/target_signal.h | 8 +- target/sparc/helper.c | 4 +- 86 files changed, 914 insertions(+), 723 deletions(-) create mode 100644 linux-user/aarch64/target_fcntl.h create mode 100644 linux-user/alpha/target_fcntl.h create mode 100644 linux-user/arm/target_fcntl.h create mode 100644 linux-user/cris/target_fcntl.h create mode 100644 linux-user/generic/fcntl.h create mode 100644 linux-user/generic/signal.h create mode 100644 linux-user/hppa/target_fcntl.h create mode 100644 linux-user/i386/target_fcntl.h create mode 100644 linux-user/m68k/target_fcntl.h create mode 100644 linux-user/microblaze/target_fcntl.h create mode 100644 linux-user/mips/target_fcntl.h create mode 100644 linux-user/mips64/target_fcntl.h create mode 100644 linux-user/nios2/target_fcntl.h create mode 100644 linux-user/openrisc/target_fcntl.h create mode 100644 linux-user/ppc/target_fcntl.h create mode 100644 linux-user/riscv/target_fcntl.h create mode 100644 linux-user/s390x/target_fcntl.h create mode 100644 linux-user/sh4/target_fcntl.h create mode 100644 linux-user/sparc/target_fcntl.h create mode 100644 linux-user/sparc64/target_fcntl.h create mode 100644 linux-user/tilegx/target_fcntl.h create mode 100644 linux-user/x86_64/target_fcntl.h create mode 100644 linux-user/xtensa/target_fcntl.h
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 09/17] linux-user: move sparc/sparc64 fcntl definitions to sparc/target_fcntl.h
No code change.
Message-Id: <[email protected]>
--- linux-user/sparc/target_fcntl.h | 34 ++++++++++++++++++++++++++++++++++ linux-user/syscall_defs.h | 39 --------------------------------------- 2 files changed, 34 insertions(+), 39 deletions(-)
linux-user/sparc/target_fcntl.h +34 -0
@@ -7,5 +7,39 @@#ifndef SPARC_TARGET_FCNTL_H #define SPARC_TARGET_FCNTL_H + +#define TARGET_O_APPEND 0x0008 +#define TARGET_FASYNC 0x0040/* fcntl, for BSD compatibility */ +#define TARGET_O_CREAT 0x0200/* not fcntl */ +#define TARGET_O_TRUNC 0x0400/* not fcntl */ +#define TARGET_O_EXCL 0x0800/* not fcntl */ +#define TARGET_O_DSYNC 0x2000 +#define TARGET_O_NONBLOCK 0x4000 +# ifdef TARGET_SPARC64 +# define TARGET_O_NDELAY 0x0004 +# else +# define TARGET_O_NDELAY (0x0004 | TARGET_O_NONBLOCK) +# endif +#define TARGET_O_NOCTTY 0x8000/* not fcntl */ +#define TARGET_O_LARGEFILE 0x40000 +#define TARGET_O_DIRECT 0x100000/* direct disk access hint */ +#define TARGET_O_NOATIME 0x200000 +#define TARGET_O_CLOEXEC 0x400000 +#define TARGET___O_SYNC 0x800000 +#define TARGET_O_PATH 0x1000000 +#define TARGET___O_TMPFILE 0x2000000 + +#define TARGET_F_RDLCK 1 +#define TARGET_F_WRLCK 2 +#define TARGET_F_UNLCK 3 +#define TARGET_F_GETOWN 5/* for sockets. */ +#define TARGET_F_SETOWN 6/* for sockets. */ +#define TARGET_F_GETLK 7 +#define TARGET_F_SETLK 8 +#define TARGET_F_SETLKW 9 + +#define TARGET_ARCH_FLOCK_PAD abi_short __unused; +#define TARGET_ARCH_FLOCK64_PAD abi_short __unused; +#include "../generic/fcntl.h" #endif
linux-user/syscall_defs.h +0 -39
@@ -2407,17 +2407,6 @@ struct target_statfs64 { };#endif -#if defined(TARGET_SPARC ) -#define TARGET_F_RDLCK 1 -#define TARGET_F_WRLCK 2 -#define TARGET_F_UNLCK 3 -#define TARGET_F_GETOWN 5/* for sockets. */ -#define TARGET_F_SETOWN 6/* for sockets. */ -#define TARGET_F_GETLK 7 -#define TARGET_F_SETLK 8 -#define TARGET_F_SETLKW 9 -#endif -#define TARGET_F_LINUX_SPECIFIC_BASE 1024#define TARGET_F_SETLEASE (TARGET_F_LINUX_SPECIFIC_BASE + 0)#define TARGET_F_GETLEASE (TARGET_F_LINUX_SPECIFIC_BASE + 1)
@@ -2426,34 +2415,6 @@ struct target_statfs64 {#define TARGET_F_GETPIPE_SZ (TARGET_F_LINUX_SPECIFIC_BASE + 8)#define TARGET_F_NOTIFY (TARGET_F_LINUX_SPECIFIC_BASE+2) -#if defined (TARGET_SPARC ) -#define TARGET_O_APPEND 0x0008 -#define TARGET_FASYNC 0x0040/* fcntl, for BSD compatibility */ -#define TARGET_O_CREAT 0x0200/* not fcntl */ -#define TARGET_O_TRUNC 0x0400/* not fcntl */ -#define TARGET_O_EXCL 0x0800/* not fcntl */ -#define TARGET_O_DSYNC 0x2000 -#define TARGET_O_NONBLOCK 0x4000 -# ifdef TARGET_SPARC64 -# define TARGET_O_NDELAY 0x0004 -# else -# define TARGET_O_NDELAY (0x0004 | TARGET_O_NONBLOCK) -# endif -#define TARGET_O_NOCTTY 0x8000/* not fcntl */ -#define TARGET_O_LARGEFILE 0x40000 -#define TARGET_O_DIRECT 0x100000/* direct disk access hint */ -#define TARGET_O_NOATIME 0x200000 -#define TARGET_O_CLOEXEC 0x400000 -#define TARGET___O_SYNC 0x800000 -#define TARGET_O_PATH 0x1000000 -#define TARGET___O_TMPFILE 0x2000000 -#endif - -#if defined(TARGET_SPARC ) -#define TARGET_ARCH_FLOCK_PAD abi_short __unused; -#define TARGET_ARCH_FLOCK64_PAD abi_short __unused; -#endif -#include "target_fcntl.h" /* soundcard defines */
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 06/17] linux-user: move arm/aarch64/m68k fcntl definitions to [arm|aarch64|m68k]/target_fcntl.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/aarch64/target_fcntl.h | 5 +++++ linux-user/arm/target_fcntl.h | 6 ++++++ linux-user/m68k/target_fcntl.h | 6 ++++++ linux-user/syscall_defs.h | 7 +------ 4 files changed, 18 insertions(+), 6 deletions(-)
linux-user/aarch64/target_fcntl.h +5 -0
@@ -7,5 +7,10 @@#ifndef AARCH64_TARGET_FCNTL_H #define AARCH64_TARGET_FCNTL_H + +#define TARGET_O_DIRECTORY 040000/* must be a directory */ +#define TARGET_O_NOFOLLOW 0100000/* don't follow links */ +#define TARGET_O_DIRECT 0200000/* direct disk access hint */ +#include "../generic/fcntl.h" #endif
linux-user/arm/target_fcntl.h +6 -0
@@ -7,5 +7,11 @@#ifndef ARM_TARGET_FCNTL_H #define ARM_TARGET_FCNTL_H + +#define TARGET_O_DIRECTORY 040000/* must be a directory */ +#define TARGET_O_NOFOLLOW 0100000/* don't follow links */ +#define TARGET_O_DIRECT 0200000/* direct disk access hint */ +#define TARGET_O_LARGEFILE 0400000 +#include "../generic/fcntl.h" #endif
linux-user/m68k/target_fcntl.h +6 -0
@@ -7,5 +7,11 @@#ifndef M68K_TARGET_FCNTL_H #define M68K_TARGET_FCNTL_H + +#define TARGET_O_DIRECTORY 040000/* must be a directory */ +#define TARGET_O_NOFOLLOW 0100000/* don't follow links */ +#define TARGET_O_DIRECT 0200000/* direct disk access hint */ +#define TARGET_O_LARGEFILE 0400000 +#include "../generic/fcntl.h" #endif
linux-user/syscall_defs.h +1 -6
@@ -2438,12 +2438,7 @@ struct target_statfs64 {#define TARGET_F_GETPIPE_SZ (TARGET_F_LINUX_SPECIFIC_BASE + 8)#define TARGET_F_NOTIFY (TARGET_F_LINUX_SPECIFIC_BASE+2) -#if defined(TARGET_ARM ) || defined(TARGET_M68K ) || defined(TARGET_AARCH64 ) -#define TARGET_O_DIRECTORY 040000/* must be a directory */ -#define TARGET_O_NOFOLLOW 0100000/* don't follow links */ -#define TARGET_O_DIRECT 0200000/* direct disk access hint */ -#define TARGET_O_LARGEFILE 0400000 -#elif defined(TARGET_MIPS ) +#if defined(TARGET_MIPS )#define TARGET_O_APPEND 0x0008#define TARGET_O_DSYNC 0x0010#define TARGET_O_NONBLOCK 0x0080
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 07/17] linux-user: move mips/mips64 fcntl definitions to mips/target_fcntl.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/mips/target_fcntl.h | 27 +++++++++++++++++++++++++++ linux-user/syscall_defs.h | 31 ++----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-)
linux-user/mips/target_fcntl.h +27 -0
@@ -7,5 +7,32 @@#ifndef MIPS_TARGET_FCNTL_H #define MIPS_TARGET_FCNTL_H + +#define TARGET_O_APPEND 0x0008 +#define TARGET_O_DSYNC 0x0010 +#define TARGET_O_NONBLOCK 0x0080 +#define TARGET_O_CREAT 0x0100/* not fcntl */ +#define TARGET_O_TRUNC 0x0200/* not fcntl */ +#define TARGET_O_EXCL 0x0400/* not fcntl */ +#define TARGET_O_NOCTTY 0x0800/* not fcntl */ +#define TARGET_FASYNC 0x1000/* fcntl, for BSD compatibility */ +#define TARGET_O_LARGEFILE 0x2000/* allow large file opens */ +#define TARGET___O_SYNC 0x4000 +#define TARGET_O_DIRECT 0x8000/* direct disk access hint */ + +#define TARGET_F_GETLK 14 +#define TARGET_F_SETLK 6 +#define TARGET_F_SETLKW 7 + +#define TARGET_F_SETOWN 24/* for sockets. */ +#define TARGET_F_GETOWN 23/* for sockets. */ + +#define TARGET_ARCH_FLOCK_PAD abi_long pad[4]; +#define TARGET_ARCH_FLOCK64_PAD + +#define TARGET_F_GETLK64 33/* using 'struct flock64' */ +#define TARGET_F_SETLK64 34 +#define TARGET_F_SETLKW64 35 +#include "../generic/fcntl.h" #endif
linux-user/syscall_defs.h +2 -29
@@ -2407,13 +2407,7 @@ struct target_statfs64 { };#endif -#if defined(TARGET_MIPS ) -#define TARGET_F_GETLK 14 -#define TARGET_F_SETLK 6 -#define TARGET_F_SETLKW 7 -#define TARGET_F_SETOWN 24/* for sockets. */ -#define TARGET_F_GETOWN 23/* for sockets. */ -#elif defined(TARGET_SPARC ) +#if defined(TARGET_SPARC )#define TARGET_F_RDLCK 1#define TARGET_F_WRLCK 2#define TARGET_F_UNLCK 3
@@ -2424,12 +2418,6 @@ struct target_statfs64 {#define TARGET_F_SETLKW 9#endif -#if defined(TARGET_MIPS ) -#define TARGET_F_GETLK64 33/* using 'struct flock64' */ -#define TARGET_F_SETLK64 34 -#define TARGET_F_SETLKW64 35 -#endif -#define TARGET_F_LINUX_SPECIFIC_BASE 1024#define TARGET_F_SETLEASE (TARGET_F_LINUX_SPECIFIC_BASE + 0)#define TARGET_F_GETLEASE (TARGET_F_LINUX_SPECIFIC_BASE + 1)
@@ -2438,19 +2426,7 @@ struct target_statfs64 {#define TARGET_F_GETPIPE_SZ (TARGET_F_LINUX_SPECIFIC_BASE + 8)#define TARGET_F_NOTIFY (TARGET_F_LINUX_SPECIFIC_BASE+2) -#if defined(TARGET_MIPS ) -#define TARGET_O_APPEND 0x0008 -#define TARGET_O_DSYNC 0x0010 -#define TARGET_O_NONBLOCK 0x0080 -#define TARGET_O_CREAT 0x0100/* not fcntl */ -#define TARGET_O_TRUNC 0x0200/* not fcntl */ -#define TARGET_O_EXCL 0x0400/* not fcntl */ -#define TARGET_O_NOCTTY 0x0800/* not fcntl */ -#define TARGET_FASYNC 0x1000/* fcntl, for BSD compatibility */ -#define TARGET_O_LARGEFILE 0x2000/* allow large file opens */ -#define TARGET___O_SYNC 0x4000 -#define TARGET_O_DIRECT 0x8000/* direct disk access hint */ -#elif defined (TARGET_PPC ) +#if defined (TARGET_PPC )#define TARGET_O_DIRECTORY 040000/* must be a directory */ #define TARGET_O_NOFOLLOW 0100000/* don't follow links */ #define TARGET_O_LARGEFILE 0200000
@@ -2481,9 +2457,6 @@ struct target_statfs64 {#if defined(TARGET_SPARC )#define TARGET_ARCH_FLOCK_PAD abi_short __unused;#define TARGET_ARCH_FLOCK64_PAD abi_short __unused; -#elif defined(TARGET_MIPS ) -#define TARGET_ARCH_FLOCK_PAD abi_long pad[4]; -#define TARGET_ARCH_FLOCK64_PAD #endif #include "target_fcntl.h"
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 01/17] syscall: replace strcpy() by g_strlcpy()
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
linux-user/syscall.c:9860:17: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
strcpy (buf->machine, cpu_to_uname_machine(cpu_env));
^~~~~~Message-Id: <[email protected]>
--- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
linux-user/syscall.c +2 -1
@@ -10156,7 +10156,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,if (!is_error (ret)) {/* Overwrite the native machine name with whatever is being emulated. */ -strcpy (buf->machine,cpu_to_uname_machine (cpu_env)); +g_strlcpy (buf->machine,cpu_to_uname_machine (cpu_env), +sizeof (buf->machine));/* Allow the user to override the reported release. */ if (qemu_uname_release && *qemu_uname_release) { g_strlcpy(buf->release, qemu_uname_release,
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 11/17] linux-user: move generic signal definitions to generic/signal.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/aarch64/target_signal.h | 2 ++ linux-user/arm/target_signal.h | 2 ++ linux-user/cris/target_signal.h | 2 ++ linux-user/generic/signal.h | 57 +++++++++++++++++++++++++++++++++++ linux-user/i386/target_signal.h | 2 ++ linux-user/m68k/target_signal.h | 2 ++ linux-user/microblaze/target_signal.h | 2 ++ linux-user/nios2/target_signal.h | 2 ++ linux-user/openrisc/target_signal.h | 2 ++ linux-user/ppc/target_signal.h | 2 ++ linux-user/riscv/target_signal.h | 2 ++ linux-user/s390x/target_signal.h | 2 ++ linux-user/sh4/target_signal.h | 2 ++ linux-user/syscall_defs.h | 50 ------------------------------ linux-user/tilegx/target_signal.h | 2 ++ linux-user/x86_64/target_signal.h | 2 ++ linux-user/xtensa/target_signal.h | 2 ++ 17 files changed, 87 insertions(+), 50 deletions(-) create mode 100644 linux-user/generic/signal.h
linux-user/aarch64/target_signal.h +2 -0
@@ -19,5 +19,7 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* AARCH64_TARGET_SIGNAL_H */
linux-user/arm/target_signal.h +2 -0
@@ -19,5 +19,7 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* ARM_TARGET_SIGNAL_H */
linux-user/cris/target_signal.h +2 -0
@@ -19,5 +19,7 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* CRIS_TARGET_SIGNAL_H */
linux-user/generic/signal.h new file +57 -0
57 lines not on this page · raw message
linux-user/i386/target_signal.h +2 -0
@@ -19,5 +19,7 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* I386_TARGET_SIGNAL_H */
linux-user/m68k/target_signal.h +2 -0
@@ -19,5 +19,7 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* M68K_TARGET_SIGNAL_H */
linux-user/microblaze/target_signal.h +2 -0
@@ -19,5 +19,7 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* MICROBLAZE_TARGET_SIGNAL_H */
linux-user/nios2/target_signal.h +2 -0
@@ -16,4 +16,6 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#endif /* TARGET_SIGNAL_H */
linux-user/openrisc/target_signal.h +2 -0
@@ -16,4 +16,6 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#endif /* OPENRISC_TARGET_SIGNAL_H */
linux-user/ppc/target_signal.h +2 -0
@@ -19,6 +19,8 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#if !defined(TARGET_PPC64 )#define TARGET_ARCH_HAS_SETUP_FRAME #endif
linux-user/riscv/target_signal.h +2 -0
@@ -13,4 +13,6 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#endif /* TARGET_SIGNAL_H */
linux-user/s390x/target_signal.h +2 -0
@@ -16,5 +16,7 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* S390X_TARGET_SIGNAL_H */
linux-user/sh4/target_signal.h +2 -0
@@ -19,5 +19,7 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* SH4_TARGET_SIGNAL_H */
linux-user/syscall_defs.h +0 -50
62 lines not on this page · raw message
linux-user/tilegx/target_signal.h +2 -0
@@ -18,4 +18,6 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#endif /* TILEGX_TARGET_SIGNAL_H */
linux-user/x86_64/target_signal.h +2 -0
@@ -19,4 +19,6 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#endif /* X86_64_TARGET_SIGNAL_H */
linux-user/xtensa/target_signal.h +2 -0
@@ -18,4 +18,6 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 +#include "../generic/signal.h" +#endif
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 12/17] linux-user: move sparc signal definitions to sparc/target_signal.h
In reply to Laurent VivierRemove sparc64/target_signal.h, use sparc/target_signal.h instead.
Message-Id: <[email protected]>
--- linux-user/sparc/target_signal.h | 48 +++++++++++++++++++++++++++++++++++ linux-user/sparc64/signal.c | 1 - linux-user/sparc64/target_signal.h | 24 +----------------- linux-user/syscall_defs.h | 52 +------------------------------------- 4 files changed, 50 insertions(+), 75 deletions(-)
linux-user/sparc/target_signal.h +48 -0
@@ -1,6 +1,44 @@ #ifndef SPARC_TARGET_SIGNAL_H #define SPARC_TARGET_SIGNAL_H +#define TARGET_SIGHUP 1 +#define TARGET_SIGINT 2 +#define TARGET_SIGQUIT 3 +#define TARGET_SIGILL 4 +#define TARGET_SIGTRAP 5 +#define TARGET_SIGABRT 6 +#define TARGET_SIGIOT 6 +#define TARGET_SIGSTKFLT 7 /* actually EMT */ +#define TARGET_SIGFPE 8 +#define TARGET_SIGKILL 9 +#define TARGET_SIGBUS 10 +#define TARGET_SIGSEGV 11 +#define TARGET_SIGSYS 12 +#define TARGET_SIGPIPE 13 +#define TARGET_SIGALRM 14 +#define TARGET_SIGTERM 15 +#define TARGET_SIGURG 16 +#define TARGET_SIGSTOP 17 +#define TARGET_SIGTSTP 18 +#define TARGET_SIGCONT 19 +#define TARGET_SIGCHLD 20 +#define TARGET_SIGTTIN 21 +#define TARGET_SIGTTOU 22 +#define TARGET_SIGIO 23 +#define TARGET_SIGXCPU 24 +#define TARGET_SIGXFSZ 25 +#define TARGET_SIGVTALRM 26 +#define TARGET_SIGPROF 27 +#define TARGET_SIGWINCH 28 +#define TARGET_SIGPWR 29 +#define TARGET_SIGUSR1 30 +#define TARGET_SIGUSR2 31 +#define TARGET_SIGRTMIN 32 + +#define TARGET_SIG_BLOCK 0x01 /* for blocking signals */ +#define TARGET_SIG_UNBLOCK 0x02 /* for unblocking signals */ +#define TARGET_SIG_SETMASK 0x04 /* for setting the signal mask */ + /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -16,6 +54,16 @@ typedef struct target_sigaltstack {#define TARGET_SS_ONSTACK 1#define TARGET_SS_DISABLE 2 +#define TARGET_SA_NOCLDSTOP 8u +#define TARGET_SA_NOCLDWAIT 0x100u +#define TARGET_SA_SIGINFO 0x200u +#define TARGET_SA_ONSTACK 1u +#define TARGET_SA_RESTART 2u +#define TARGET_SA_NODEFER 0x20u +#define TARGET_SA_RESETHAND 4u +#define TARGET_ARCH_HAS_SA_RESTORER 1 +#define TARGET_ARCH_HAS_KA_RESTORER 1 +#define TARGET_MINSIGSTKSZ 4096#define TARGET_SIGSTKSZ 16384
linux-user/sparc64/signal.c +0 -1
@@ -16,5 +16,4 @@* You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#define SPARC_TARGET_SIGNAL_H /* to only include sparc64/target_signal.h */ #include "../sparc/signal.c"
linux-user/sparc64/target_signal.h +1 -23
@@ -1,23 +1 @@ -#ifndef SPARC64_TARGET_SIGNAL_H -#define SPARC64_TARGET_SIGNAL_H - -/* this struct defines a stack used during syscall handling */ - -typedef struct target_sigaltstack { -abi_ulong ss_sp; -abi_long ss_flags; -abi_ulong ss_size; -}target_stack_t ; - - -/* -* sigaltstack controls -*/ -#define TARGET_SS_ONSTACK 1 -#define TARGET_SS_DISABLE 2 - -#define TARGET_MINSIGSTKSZ 4096 -#define TARGET_SIGSTKSZ 16384 - -#define TARGET_ARCH_HAS_SETUP_FRAME -#endif /* SPARC64_TARGET_SIGNAL_H */ +#include "../sparc/target_signal.h"
linux-user/syscall_defs.h +1 -51
64 lines not on this page · raw message
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 13/17] linux-user: move mips signal definitions to mips/target_signal.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/mips/target_signal.h | 50 ++++++++++++++++++++++++++++++++++ linux-user/mips64/target_signal.h | 49 ++++++++++++++++++++++++++++++++++ linux-user/syscall_defs.h | 56 +-------------------------------------- 3 files changed, 100 insertions(+), 55 deletions(-)
linux-user/mips/target_signal.h +50 -0
@@ -1,6 +1,47 @@ #ifndef MIPS_TARGET_SIGNAL_H #define MIPS_TARGET_SIGNAL_H +#define TARGET_SIGHUP 1 /* Hangup (POSIX). */ +#define TARGET_SIGINT 2 /* Interrupt (ANSI). */ +#define TARGET_SIGQUIT 3 /* Quit (POSIX). */ +#define TARGET_SIGILL 4 /* Illegal instruction (ANSI). */ +#define TARGET_SIGTRAP 5 /* Trace trap (POSIX). */ +#define TARGET_SIGIOT 6 /* IOT trap (4.2 BSD). */ +#define TARGET_SIGABRT TARGET_SIGIOT /* Abort (ANSI). */ +#define TARGET_SIGEMT 7 +#define TARGET_SIGSTKFLT 7 /* XXX: incorrect */ +#define TARGET_SIGFPE 8 /* Floating-point exception (ANSI). */ +#define TARGET_SIGKILL 9 /* Kill, unblockable (POSIX). */ +#define TARGET_SIGBUS 10 /* BUS error (4.2 BSD). */ +#define TARGET_SIGSEGV 11 /* Segmentation violation (ANSI). */ +#define TARGET_SIGSYS 12 +#define TARGET_SIGPIPE 13 /* Broken pipe (POSIX). */ +#define TARGET_SIGALRM 14 /* Alarm clock (POSIX). */ +#define TARGET_SIGTERM 15 /* Termination (ANSI). */ +#define TARGET_SIGUSR1 16 /* User-defined signal 1 (POSIX). */ +#define TARGET_SIGUSR2 17 /* User-defined signal 2 (POSIX). */ +#define TARGET_SIGCHLD 18 /* Child status has changed (POSIX). */ +#define TARGET_SIGCLD TARGET_SIGCHLD /* Same as TARGET_SIGCHLD (System V). */ +#define TARGET_SIGPWR 19 /* Power failure restart (System V). */ +#define TARGET_SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */ +#define TARGET_SIGURG 21 /* Urgent condition on socket (4.2 BSD). */ +#define TARGET_SIGIO 22 /* I/O now possible (4.2 BSD). */ +#define TARGET_SIGPOLL TARGET_SIGIO /* Pollable event occurred (System V). */ +#define TARGET_SIGSTOP 23 /* Stop, unblockable (POSIX). */ +#define TARGET_SIGTSTP 24 /* Keyboard stop (POSIX). */ +#define TARGET_SIGCONT 25 /* Continue (POSIX). */ +#define TARGET_SIGTTIN 26 /* Background read from tty (POSIX). */ +#define TARGET_SIGTTOU 27 /* Background write to tty (POSIX). */ +#define TARGET_SIGVTALRM 28 /* Virtual alarm clock (4.2 BSD). */ +#define TARGET_SIGPROF 29 /* Profiling alarm clock (4.2 BSD). */ +#define TARGET_SIGXCPU 30 /* CPU limit exceeded (4.2 BSD). */ +#define TARGET_SIGXFSZ 31 /* File size limit exceeded (4.2 BSD). */ +#define TARGET_SIGRTMIN 32 + +#define TARGET_SIG_BLOCK 1 /* for blocking signals */ +#define TARGET_SIG_UNBLOCK 2 /* for unblocking signals */ +#define TARGET_SIG_SETMASK 3 /* for setting the signal mask */ + /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -16,6 +57,15 @@ typedef struct target_sigaltstack {#define TARGET_SS_ONSTACK 1#define TARGET_SS_DISABLE 2 +#define TARGET_SA_NOCLDSTOP 0x00000001 +#define TARGET_SA_NOCLDWAIT 0x00010000 +#define TARGET_SA_SIGINFO 0x00000008 +#define TARGET_SA_ONSTACK 0x08000000 +#define TARGET_SA_NODEFER 0x40000000 +#define TARGET_SA_RESTART 0x10000000 +#define TARGET_SA_RESETHAND 0x80000000 +#define TARGET_SA_RESTORER 0x04000000/* Only for O32 */ +#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192
linux-user/mips64/target_signal.h +49 -0
61 lines not on this page · raw message
linux-user/syscall_defs.h +1 -55
68 lines not on this page · raw message
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 14/17] linux-user: move openrisc signal definitions to openrisc/target_signal.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/openrisc/target_signal.h | 8 ++++++++ linux-user/syscall_defs.h | 10 +--------- 2 files changed, 9 insertions(+), 9 deletions(-)
linux-user/openrisc/target_signal.h +8 -0
@@ -13,6 +13,14 @@ typedef struct target_sigaltstack {#define TARGET_SS_ONSTACK 1#define TARGET_SS_DISABLE 2 +#define TARGET_SA_NOCLDSTOP 0x00000001 +#define TARGET_SA_NOCLDWAIT 0x00000002 +#define TARGET_SA_SIGINFO 0x00000004 +#define TARGET_SA_ONSTACK 0x08000000 +#define TARGET_SA_RESTART 0x10000000 +#define TARGET_SA_NODEFER 0x40000000 +#define TARGET_SA_RESETHAND 0x80000000 +#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192
linux-user/syscall_defs.h +1 -9
@@ -426,15 +426,7 @@ int do_sigaction(int sig, const struct target_sigaction *act, ||defined (TARGET_TILEGX ) ||defined (TARGET_HPPA ) ||defined (TARGET_NIOS2 ) \ || defined(TARGET_RISCV) || defined(TARGET_XTENSA) -#if defined(TARGET_OPENRISC ) -#define TARGET_SA_NOCLDSTOP 0x00000001 -#define TARGET_SA_NOCLDWAIT 0x00000002 -#define TARGET_SA_SIGINFO 0x00000004 -#define TARGET_SA_ONSTACK 0x08000000 -#define TARGET_SA_RESTART 0x10000000 -#define TARGET_SA_NODEFER 0x40000000 -#define TARGET_SA_RESETHAND 0x80000000 -#elif defined(TARGET_ALPHA ) +#if defined(TARGET_ALPHA )#define TARGET_SA_ONSTACK 0x00000001#define TARGET_SA_RESTART 0x00000002#define TARGET_SA_NOCLDSTOP 0x00000004
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 02/17] linux-user: SPARC "rd %tick" can be used by user application
In reply to Laurent Vivierwe have the same problem decribed in 7d6b1daedd ("linux-user, ppc: mftbl can be used by user application") for ppc in the case of sparc.
When we use an application trying to resolve a name, it hangs in
0x00000000ff5dd40c: rd %tick, %o5
0x00000000ff5dd410: srlx %o5, 0x20, %o4
0x00000000ff5dd414: btst %o5, %g4
0x00000000ff5dd418: be %icc, 0xff5dd40cbecause %tick is staying at 0.
As QEMU_CLOCK_VIRTUAL is not available in linux-user mode, simply use cpu_get_host_ticks() instead.
Message-Id: <[email protected]>
--- target/sparc/helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
target/sparc/helper.c +3 -1
@@ -67,7 +67,9 @@ uint64_t helper_tick_get_count(CPUSPARCState *env, void *opaque, int mem_idx)return cpu_tick_get_count (timer);#else -return 0 ; +/* In user-mode, QEMU_CLOCK_VIRTUAL doesn't exist. +Just pass through the host cpu clock ticks. */ +return cpu_get_host_ticks ();#endif }
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 04/17] linux-user: move alpha fcntl definitions to alpha/target_fcntl.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/alpha/target_fcntl.h | 29 +++++++++++++++++++++++++++++ linux-user/syscall_defs.h | 32 ++------------------------------ 2 files changed, 31 insertions(+), 30 deletions(-)
linux-user/alpha/target_fcntl.h +29 -0
@@ -7,5 +7,34 @@#ifndef ALPHA_TARGET_FCNTL_H #define ALPHA_TARGET_FCNTL_H + +#define TARGET_O_NONBLOCK 04 +#define TARGET_O_APPEND 010 +#define TARGET_O_CREAT 01000/* not fcntl */ +#define TARGET_O_TRUNC 02000/* not fcntl */ +#define TARGET_O_EXCL 04000/* not fcntl */ +#define TARGET_O_NOCTTY 010000/* not fcntl */ +#define TARGET_O_DSYNC 040000 +#define TARGET_O_LARGEFILE 0/* not necessary, always 64-bit */ +#define TARGET_O_DIRECTORY 0100000/* must be a directory */ +#define TARGET_O_NOFOLLOW 0200000/* don't follow links */ +#define TARGET_O_DIRECT 02000000/* direct disk access hint */ +#define TARGET_O_NOATIME 04000000 +#define TARGET_O_CLOEXEC 010000000 +#define TARGET___O_SYNC 020000000 +#define TARGET_O_PATH 040000000 + +#define TARGET_F_GETLK 7 +#define TARGET_F_SETLK 8 +#define TARGET_F_SETLKW 9 +#define TARGET_F_SETOWN 5/* for sockets. */ +#define TARGET_F_GETOWN 6/* for sockets. */ + +#define TARGET_F_RDLCK 1 +#define TARGET_F_WRLCK 2 +#define TARGET_F_UNLCK 8 +#define TARGET_F_EXLCK 16 +#define TARGET_F_SHLCK 32 +#include "../generic/fcntl.h" #endif
linux-user/syscall_defs.h +2 -30
@@ -2407,19 +2407,7 @@ struct target_statfs64 { };#endif -#if defined(TARGET_ALPHA ) -#define TARGET_F_GETLK 7 -#define TARGET_F_SETLK 8 -#define TARGET_F_SETLKW 9 -#define TARGET_F_SETOWN 5/* for sockets. */ -#define TARGET_F_GETOWN 6/* for sockets. */ - -#define TARGET_F_RDLCK 1 -#define TARGET_F_WRLCK 2 -#define TARGET_F_UNLCK 8 -#define TARGET_F_EXLCK 16 -#define TARGET_F_SHLCK 32 -#elif defined(TARGET_MIPS ) +#if defined(TARGET_MIPS )#define TARGET_F_GETLK 14#define TARGET_F_SETLK 6#define TARGET_F_SETLKW 7
@@ -2468,23 +2456,7 @@ struct target_statfs64 {#define TARGET_F_GETPIPE_SZ (TARGET_F_LINUX_SPECIFIC_BASE + 8)#define TARGET_F_NOTIFY (TARGET_F_LINUX_SPECIFIC_BASE+2) -#if defined(TARGET_ALPHA ) -#define TARGET_O_NONBLOCK 04 -#define TARGET_O_APPEND 010 -#define TARGET_O_CREAT 01000/* not fcntl */ -#define TARGET_O_TRUNC 02000/* not fcntl */ -#define TARGET_O_EXCL 04000/* not fcntl */ -#define TARGET_O_NOCTTY 010000/* not fcntl */ -#define TARGET_O_DSYNC 040000 -#define TARGET_O_LARGEFILE 0/* not necessary, always 64-bit */ -#define TARGET_O_DIRECTORY 0100000/* must be a directory */ -#define TARGET_O_NOFOLLOW 0200000/* don't follow links */ -#define TARGET_O_DIRECT 02000000/* direct disk access hint */ -#define TARGET_O_NOATIME 04000000 -#define TARGET_O_CLOEXEC 010000000 -#define TARGET___O_SYNC 020000000 -#define TARGET_O_PATH 040000000 -#elif defined(TARGET_HPPA ) +#if defined(TARGET_HPPA )#define TARGET_O_NONBLOCK 000200004/* HPUX has separate NDELAY & NONBLOCK */ #define TARGET_O_APPEND 000000010#define TARGET_O_CREAT 000000400/* not fcntl */
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 05/17] linux-user: move hppa fcntl definitions to hppa/target_fcntl.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/hppa/target_fcntl.h | 31 +++++++++++++++++++++++++++++++ linux-user/syscall_defs.h | 34 +--------------------------------- 2 files changed, 32 insertions(+), 33 deletions(-)
linux-user/hppa/target_fcntl.h +31 -0
@@ -7,5 +7,36 @@#ifndef HPPA_TARGET_FCNTL_H #define HPPA_TARGET_FCNTL_H + +#define TARGET_O_NONBLOCK 000200004/* HPUX has separate NDELAY & NONBLOCK */ +#define TARGET_O_APPEND 000000010 +#define TARGET_O_CREAT 000000400/* not fcntl */ +#define TARGET_O_EXCL 000002000/* not fcntl */ +#define TARGET_O_NOCTTY 000400000/* not fcntl */ +#define TARGET_O_DSYNC 001000000 +#define TARGET_O_LARGEFILE 000004000 +#define TARGET_O_DIRECTORY 000010000/* must be a directory */ +#define TARGET_O_NOFOLLOW 000000200/* don't follow links */ +#define TARGET_O_NOATIME 004000000 +#define TARGET_O_CLOEXEC 010000000 +#define TARGET___O_SYNC 000100000 +#define TARGET_O_PATH 020000000 + +#define TARGET_F_RDLCK 1 +#define TARGET_F_WRLCK 2 +#define TARGET_F_UNLCK 3 + +#define TARGET_F_GETLK64 8/* using 'struct flock64' */ +#define TARGET_F_SETLK64 9 +#define TARGET_F_SETLKW64 10 + +#define TARGET_F_GETLK 5 +#define TARGET_F_SETLK 6 +#define TARGET_F_SETLKW 7 +#define TARGET_F_GETOWN 11/* for sockets. */ +#define TARGET_F_SETOWN 12/* for sockets. */ +#define TARGET_F_SETSIG 13/* for sockets. */ +#define TARGET_F_GETSIG 14/* for sockets. */ +#include "../generic/fcntl.h" #endif
linux-user/syscall_defs.h +1 -33
@@ -2413,15 +2413,6 @@ struct target_statfs64 {#define TARGET_F_SETLKW 7#define TARGET_F_SETOWN 24/* for sockets. */ #define TARGET_F_GETOWN 23/* for sockets. */ -#elif defined(TARGET_HPPA ) -#define TARGET_F_RDLCK 1 -#define TARGET_F_WRLCK 2 -#define TARGET_F_UNLCK 3 -#define TARGET_F_GETLK 5 -#define TARGET_F_SETLK 6 -#define TARGET_F_SETLKW 7 -#define TARGET_F_GETOWN 11/* for sockets. */ -#define TARGET_F_SETOWN 12/* for sockets. */ #elif defined(TARGET_SPARC )#define TARGET_F_RDLCK 1#define TARGET_F_WRLCK 2
@@ -2433,19 +2424,10 @@ struct target_statfs64 {#define TARGET_F_SETLKW 9#endif -#if defined(TARGET_HPPA ) -#define TARGET_F_SETSIG 13/* for sockets. */ -#define TARGET_F_GETSIG 14/* for sockets. */ -#endif -#if defined(TARGET_MIPS )#define TARGET_F_GETLK64 33/* using 'struct flock64' */ #define TARGET_F_SETLK64 34#define TARGET_F_SETLKW64 35 -#elif defined(TARGET_HPPA ) -#define TARGET_F_GETLK64 8/* using 'struct flock64' */ -#define TARGET_F_SETLK64 9 -#define TARGET_F_SETLKW64 10#endif #define TARGET_F_LINUX_SPECIFIC_BASE 1024
@@ -2456,21 +2438,7 @@ struct target_statfs64 {#define TARGET_F_GETPIPE_SZ (TARGET_F_LINUX_SPECIFIC_BASE + 8)#define TARGET_F_NOTIFY (TARGET_F_LINUX_SPECIFIC_BASE+2) -#if defined(TARGET_HPPA ) -#define TARGET_O_NONBLOCK 000200004/* HPUX has separate NDELAY & NONBLOCK */ -#define TARGET_O_APPEND 000000010 -#define TARGET_O_CREAT 000000400/* not fcntl */ -#define TARGET_O_EXCL 000002000/* not fcntl */ -#define TARGET_O_NOCTTY 000400000/* not fcntl */ -#define TARGET_O_DSYNC 001000000 -#define TARGET_O_LARGEFILE 000004000 -#define TARGET_O_DIRECTORY 000010000/* must be a directory */ -#define TARGET_O_NOFOLLOW 000000200/* don't follow links */ -#define TARGET_O_NOATIME 004000000 -#define TARGET_O_CLOEXEC 010000000 -#define TARGET___O_SYNC 000100000 -#define TARGET_O_PATH 020000000 -#elif defined(TARGET_ARM ) || defined(TARGET_M68K ) || defined(TARGET_AARCH64 ) +#if defined(TARGET_ARM ) || defined(TARGET_M68K ) || defined(TARGET_AARCH64 )#define TARGET_O_DIRECTORY 040000/* must be a directory */ #define TARGET_O_NOFOLLOW 0100000/* don't follow links */ #define TARGET_O_DIRECT 0200000/* direct disk access hint */
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 16/17] linux-user: move hppa signal definitions to hppa/target_signal.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/hppa/target_signal.h | 46 ++++++++++++++++++++++++++++++++++++ linux-user/syscall_defs.h | 52 ----------------------------------------- 2 files changed, 46 insertions(+), 52 deletions(-)
linux-user/hppa/target_signal.h +46 -0
@@ -1,6 +1,44 @@ #ifndef HPPA_TARGET_SIGNAL_H #define HPPA_TARGET_SIGNAL_H +#define TARGET_SIGHUP 1 +#define TARGET_SIGINT 2 +#define TARGET_SIGQUIT 3 +#define TARGET_SIGILL 4 +#define TARGET_SIGTRAP 5 +#define TARGET_SIGABRT 6 +#define TARGET_SIGIOT 6 +#define TARGET_SIGSTKFLT 7 +#define TARGET_SIGFPE 8 +#define TARGET_SIGKILL 9 +#define TARGET_SIGBUS 10 +#define TARGET_SIGSEGV 11 +#define TARGET_SIGXCPU 12 +#define TARGET_SIGPIPE 13 +#define TARGET_SIGALRM 14 +#define TARGET_SIGTERM 15 +#define TARGET_SIGUSR1 16 +#define TARGET_SIGUSR2 17 +#define TARGET_SIGCHLD 18 +#define TARGET_SIGPWR 19 +#define TARGET_SIGVTALRM 20 +#define TARGET_SIGPROF 21 +#define TARGET_SIGIO 22 +#define TARGET_SIGPOLL TARGET_SIGIO +#define TARGET_SIGWINCH 23 +#define TARGET_SIGSTOP 24 +#define TARGET_SIGTSTP 25 +#define TARGET_SIGCONT 26 +#define TARGET_SIGTTIN 27 +#define TARGET_SIGTTOU 28 +#define TARGET_SIGURG 29 +#define TARGET_SIGXFSZ 30 +#define TARGET_SIGSYS 31 + +#define TARGET_SIG_BLOCK 0 +#define TARGET_SIG_UNBLOCK 1 +#define TARGET_SIG_SETMASK 2 + /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -16,6 +54,14 @@ typedef struct target_sigaltstack {#define TARGET_SS_ONSTACK 1#define TARGET_SS_DISABLE 2 +#define TARGET_SA_ONSTACK 0x00000001 +#define TARGET_SA_RESETHAND 0x00000004 +#define TARGET_SA_NOCLDSTOP 0x00000008 +#define TARGET_SA_SIGINFO 0x00000010 +#define TARGET_SA_NODEFER 0x00000020 +#define TARGET_SA_RESTART 0x00000040 +#define TARGET_SA_NOCLDWAIT 0x00000080 +#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192
linux-user/syscall_defs.h +0 -52
64 lines not on this page · raw message
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 17/17] linux-user: remove useless #if
In reply to Laurent VivierRemove a "#if defined(XX) || defined(YY) || ..." with all available targets
Message-Id: <[email protected]>
--- linux-user/syscall_defs.h | 10 ---------- 1 file changed, 10 deletions(-)
linux-user/syscall_defs.h +0 -10
@@ -418,14 +418,6 @@ struct target_sigaction;int do_sigaction (int sig,const struct target_sigaction *act,struct target_sigaction *oact); -#if defined(TARGET_I386 ) || defined(TARGET_ARM ) || defined(TARGET_SPARC ) \ - || defined(TARGET_PPC ) || defined(TARGET_MIPS ) || defined(TARGET_SH4 ) \ - || defined(TARGET_M68K ) || defined(TARGET_ALPHA ) || defined(TARGET_CRIS ) \ - || defined(TARGET_MICROBLAZE ) \ - || defined(TARGET_S390X ) || defined(TARGET_OPENRISC ) \ - || defined(TARGET_TILEGX ) || defined(TARGET_HPPA ) || defined(TARGET_NIOS2 ) \ - || defined(TARGET_RISCV ) || defined(TARGET_XTENSA ) -#include "target_signal.h" #ifdef TARGET_SA_RESTORER
@@ -666,8 +658,6 @@ typedef struct target_siginfo {#define TARGET_TRAP_BRANCH (3)/* process taken branch trap */ #define TARGET_TRAP_HWBKPT (4)/* hardware breakpoint/watchpoint */ -#endif /* defined(TARGET_I386) || defined(TARGET_ARM) */ -struct target_rlimit {abi_ulong rlim_cur;abi_ulong rlim_max;
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 03/17] linux-user: move generic fcntl definitions to generic/fcntl.h
In reply to Laurent Vivieradd a per target target_fcntl.h and include the generic one from them
No code change.
Message-Id: <[email protected]>
--- linux-user/aarch64/target_fcntl.h | 11 +++ linux-user/alpha/target_fcntl.h | 11 +++ linux-user/arm/target_fcntl.h | 11 +++ linux-user/cris/target_fcntl.h | 11 +++ linux-user/generic/fcntl.h | 151 +++++++++++++++++++++++++++++++++++ linux-user/hppa/target_fcntl.h | 11 +++ linux-user/i386/target_fcntl.h | 11 +++ linux-user/m68k/target_fcntl.h | 11 +++ linux-user/microblaze/target_fcntl.h | 11 +++ linux-user/mips/target_fcntl.h | 11 +++ linux-user/mips64/target_fcntl.h | 1 + linux-user/nios2/target_fcntl.h | 11 +++ linux-user/openrisc/target_fcntl.h | 11 +++ linux-user/ppc/target_fcntl.h | 11 +++ linux-user/riscv/target_fcntl.h | 11 +++ linux-user/s390x/target_fcntl.h | 11 +++ linux-user/sh4/target_fcntl.h | 11 +++ linux-user/sparc/target_fcntl.h | 11 +++ linux-user/sparc64/target_fcntl.h | 1 + linux-user/syscall_defs.h | 129 +----------------------------- linux-user/tilegx/target_fcntl.h | 11 +++ linux-user/x86_64/target_fcntl.h | 11 +++ linux-user/xtensa/target_fcntl.h | 11 +++ 23 files changed, 363 insertions(+), 128 deletions(-) create mode 100644 linux-user/aarch64/target_fcntl.h create mode 100644 linux-user/alpha/target_fcntl.h create mode 100644 linux-user/arm/target_fcntl.h create mode 100644 linux-user/cris/target_fcntl.h create mode 100644 linux-user/generic/fcntl.h create mode 100644 linux-user/hppa/target_fcntl.h create mode 100644 linux-user/i386/target_fcntl.h create mode 100644 linux-user/m68k/target_fcntl.h create mode 100644 linux-user/microblaze/target_fcntl.h create mode 100644 linux-user/mips/target_fcntl.h create mode 100644 linux-user/mips64/target_fcntl.h create mode 100644 linux-user/nios2/target_fcntl.h create mode 100644 linux-user/openrisc/target_fcntl.h create mode 100644 linux-user/ppc/target_fcntl.h create mode 100644 linux-user/riscv/target_fcntl.h create mode 100644 linux-user/s390x/target_fcntl.h create mode 100644 linux-user/sh4/target_fcntl.h create mode 100644 linux-user/sparc/target_fcntl.h create mode 100644 linux-user/sparc64/target_fcntl.h create mode 100644 linux-user/tilegx/target_fcntl.h create mode 100644 linux-user/x86_64/target_fcntl.h create mode 100644 linux-user/xtensa/target_fcntl.h
linux-user/aarch64/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef AARCH64_TARGET_FCNTL_H +#define AARCH64_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/alpha/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef ALPHA_TARGET_FCNTL_H +#define ALPHA_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/arm/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef ARM_TARGET_FCNTL_H +#define ARM_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/cris/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef CRIS_TARGET_FCNTL_H +#define CRIS_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/generic/fcntl.h new file +151 -0
151 lines not on this page · raw message
linux-user/hppa/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef HPPA_TARGET_FCNTL_H +#define HPPA_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/i386/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef I386_TARGET_FCNTL_H +#define I386_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/m68k/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef M68K_TARGET_FCNTL_H +#define M68K_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/microblaze/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef MICROBLAZE_TARGET_FCNTL_H +#define MICROBLAZE_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/mips/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef MIPS_TARGET_FCNTL_H +#define MIPS_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/mips64/target_fcntl.h new file +1 -0
@@ -0,0 +1 @@ +#include "../mips/target_fcntl.h"
linux-user/nios2/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef NIOS2_TARGET_FCNTL_H +#define NIOS2_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/openrisc/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef OPENRISC_TARGET_FCNTL_H +#define OPENRISC_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/ppc/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef PPC_TARGET_FCNTL_H +#define PPC_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/riscv/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef RISCV_TARGET_FCNTL_H +#define RISCV_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/s390x/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef S390X_TARGET_FCNTL_H +#define S390X_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/sh4/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef SH4_TARGET_FCNTL_H +#define SH4_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/sparc/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef SPARC_TARGET_FCNTL_H +#define SPARC_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/sparc64/target_fcntl.h new file +1 -0
@@ -0,0 +1 @@ +#include "../sparc/target_fcntl.h"
linux-user/syscall_defs.h +1 -128
166 lines not on this page · raw message
linux-user/tilegx/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef TILEGX_TARGET_FCNTL_H +#define TILEGX_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/x86_64/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef X86_64_TARGET_FCNTL_H +#define X86_64_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
linux-user/xtensa/target_fcntl.h new file +11 -0
@@ -0,0 +1,11 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation, or (at your option) any +* later version. See the COPYING file in the top-level directory. +*/ + +#ifndef XTENSA_TARGET_FCNTL_H +#define XTENSA_TARGET_FCNTL_H +#include "../generic/fcntl.h" +#endif
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 08/17] linux-user: move ppc fcntl definitions to ppc/target_fcntl.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/ppc/target_fcntl.h | 6 ++++++ linux-user/syscall_defs.h | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-)
linux-user/ppc/target_fcntl.h +6 -0
@@ -7,5 +7,11 @@#ifndef PPC_TARGET_FCNTL_H #define PPC_TARGET_FCNTL_H + +#define TARGET_O_DIRECTORY 040000/* must be a directory */ +#define TARGET_O_NOFOLLOW 0100000/* don't follow links */ +#define TARGET_O_LARGEFILE 0200000 +#define TARGET_O_DIRECT 0400000/* direct disk access hint */ +#include "../generic/fcntl.h" #endif
linux-user/syscall_defs.h +1 -6
@@ -2426,12 +2426,7 @@ struct target_statfs64 {#define TARGET_F_GETPIPE_SZ (TARGET_F_LINUX_SPECIFIC_BASE + 8)#define TARGET_F_NOTIFY (TARGET_F_LINUX_SPECIFIC_BASE+2) -#if defined (TARGET_PPC ) -#define TARGET_O_DIRECTORY 040000/* must be a directory */ -#define TARGET_O_NOFOLLOW 0100000/* don't follow links */ -#define TARGET_O_LARGEFILE 0200000 -#define TARGET_O_DIRECT 0400000/* direct disk access hint */ -#elif defined (TARGET_SPARC ) +#if defined (TARGET_SPARC )#define TARGET_O_APPEND 0x0008#define TARGET_FASYNC 0x0040/* fcntl, for BSD compatibility */ #define TARGET_O_CREAT 0x0200/* not fcntl */
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 15/17] linux-user: move alpha signal definitions to alpha/target_signal.h
In reply to Laurent VivierNo code change.
Message-Id: <[email protected]>
--- linux-user/alpha/target_signal.h | 45 +++++++++++++++++++++++++++++++++++ linux-user/syscall_defs.h | 51 ++-------------------------------------- 2 files changed, 47 insertions(+), 49 deletions(-)
linux-user/alpha/target_signal.h +45 -0
@@ -1,6 +1,43 @@ #ifndef ALPHA_TARGET_SIGNAL_H #define ALPHA_TARGET_SIGNAL_H +#define TARGET_SIGHUP 1 +#define TARGET_SIGINT 2 +#define TARGET_SIGQUIT 3 +#define TARGET_SIGILL 4 +#define TARGET_SIGTRAP 5 +#define TARGET_SIGABRT 6 +#define TARGET_SIGSTKFLT 7 /* actually SIGEMT */ +#define TARGET_SIGFPE 8 +#define TARGET_SIGKILL 9 +#define TARGET_SIGBUS 10 +#define TARGET_SIGSEGV 11 +#define TARGET_SIGSYS 12 +#define TARGET_SIGPIPE 13 +#define TARGET_SIGALRM 14 +#define TARGET_SIGTERM 15 +#define TARGET_SIGURG 16 +#define TARGET_SIGSTOP 17 +#define TARGET_SIGTSTP 18 +#define TARGET_SIGCONT 19 +#define TARGET_SIGCHLD 20 +#define TARGET_SIGTTIN 21 +#define TARGET_SIGTTOU 22 +#define TARGET_SIGIO 23 +#define TARGET_SIGXCPU 24 +#define TARGET_SIGXFSZ 25 +#define TARGET_SIGVTALRM 26 +#define TARGET_SIGPROF 27 +#define TARGET_SIGWINCH 28 +#define TARGET_SIGPWR 29 /* actually SIGINFO */ +#define TARGET_SIGUSR1 30 +#define TARGET_SIGUSR2 31 +#define TARGET_SIGRTMIN 32 + +#define TARGET_SIG_BLOCK 1 +#define TARGET_SIG_UNBLOCK 2 +#define TARGET_SIG_SETMASK 3 + /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -17,6 +54,14 @@ typedef struct target_sigaltstack {#define TARGET_SS_ONSTACK 1#define TARGET_SS_DISABLE 2 +#define TARGET_SA_ONSTACK 0x00000001 +#define TARGET_SA_RESTART 0x00000002 +#define TARGET_SA_NOCLDSTOP 0x00000004 +#define TARGET_SA_NODEFER 0x00000008 +#define TARGET_SA_RESETHAND 0x00000010 +#define TARGET_SA_NOCLDWAIT 0x00000020/* not supported yet */ +#define TARGET_SA_SIGINFO 0x00000040 +#define TARGET_MINSIGSTKSZ 4096#define TARGET_SIGSTKSZ 16384
linux-user/syscall_defs.h +2 -49
63 lines not on this page · raw message
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 10/17] linux-user: move get_sp_from_cpustate() to target_cpu.h
In reply to Laurent VivierRemove useless includes
Fix HPPA include guard.
Message-Id: <[email protected]>
--- linux-user/aarch64/signal.c | 1 - linux-user/aarch64/target_cpu.h | 4 ++++ linux-user/aarch64/target_signal.h | 7 ------- linux-user/alpha/signal.c | 1 - linux-user/alpha/target_cpu.h | 4 ++++ linux-user/alpha/target_signal.h | 8 -------- linux-user/arm/signal.c | 1 - linux-user/arm/target_cpu.h | 4 ++++ linux-user/arm/target_signal.h | 7 ------- linux-user/cris/signal.c | 1 - linux-user/cris/target_cpu.h | 4 ++++ linux-user/cris/target_signal.h | 7 ------- linux-user/hppa/signal.c | 1 - linux-user/hppa/target_cpu.h | 8 ++++++-- linux-user/hppa/target_signal.h | 6 ------ linux-user/i386/signal.c | 1 - linux-user/i386/target_cpu.h | 4 ++++ linux-user/i386/target_signal.h | 7 ------- linux-user/m68k/signal.c | 1 - linux-user/m68k/target_cpu.h | 4 ++++ linux-user/m68k/target_signal.h | 7 ------- linux-user/microblaze/signal.c | 1 - linux-user/microblaze/target_cpu.h | 4 ++++ linux-user/microblaze/target_signal.h | 7 ------- linux-user/mips/signal.c | 1 - linux-user/mips/target_cpu.h | 4 ++++ linux-user/mips/target_signal.h | 7 ------- linux-user/mips64/target_signal.h | 6 ------ linux-user/nios2/signal.c | 1 - linux-user/nios2/target_cpu.h | 4 ++++ linux-user/nios2/target_signal.h | 6 ------ linux-user/openrisc/signal.c | 1 - linux-user/openrisc/target_cpu.h | 4 ++++ linux-user/openrisc/target_signal.h | 6 ------ linux-user/ppc/signal.c | 1 - linux-user/ppc/target_cpu.h | 5 ++++- linux-user/ppc/target_signal.h | 7 ------- linux-user/qemu.h | 1 - linux-user/riscv/signal.c | 1 - linux-user/riscv/target_cpu.h | 4 ++++ linux-user/riscv/target_signal.h | 6 ------ linux-user/s390x/signal.c | 1 - linux-user/s390x/target_cpu.h | 4 ++++ linux-user/s390x/target_signal.h | 7 ------- linux-user/sh4/signal.c | 1 - linux-user/sh4/target_cpu.h | 4 ++++ linux-user/sh4/target_signal.h | 7 ------- linux-user/signal.c | 1 - linux-user/sparc/signal.c | 1 - linux-user/sparc/target_cpu.h | 11 +++++++++++ linux-user/sparc/target_signal.h | 14 -------------- linux-user/sparc64/target_signal.h | 14 -------------- linux-user/syscall_defs.h | 2 ++ linux-user/tilegx/signal.c | 1 - linux-user/tilegx/target_cpu.h | 4 ++++ linux-user/tilegx/target_signal.h | 6 ------ linux-user/x86_64/target_signal.h | 6 ------ linux-user/xtensa/signal.c | 1 - linux-user/xtensa/target_cpu.h | 4 ++++ linux-user/xtensa/target_signal.h | 6 ------ 60 files changed, 83 insertions(+), 177 deletions(-)
linux-user/aarch64/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/aarch64/target_cpu.h +4 -0
@@ -35,4 +35,8 @@ static inline void cpu_set_tls(CPUARMState *env, target_ulong newtls) env->cp15.tpidr_el[0] = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUARMState *state) +{ +return state->xregs[31 ]; +}#endif
linux-user/aarch64/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef AARCH64_TARGET_SIGNAL_H #define AARCH64_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,10 +19,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUARMState *state) -{ -return state->xregs[31 ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* AARCH64_TARGET_SIGNAL_H */
linux-user/alpha/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/alpha/target_cpu.h +4 -0
@@ -33,4 +33,8 @@ static inline void cpu_set_tls(CPUAlphaState *env, target_ulong newtls) env->unique = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUAlphaState *state) +{ +return state->ir[IR_SP ]; +}#endif
linux-user/alpha/target_signal.h +0 -8
@@ -1,8 +1,6 @@ #ifndef ALPHA_TARGET_SIGNAL_H #define ALPHA_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -22,12 +20,6 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 4096#define TARGET_SIGSTKSZ 16384 -static inline abi_ulong get_sp_from_cpustate (CPUAlphaState *state) -{ -return state->ir[IR_SP ]; -} - -/* From <asm/gentrap.h>. */ #define TARGET_GEN_INTOVF -1/* integer overflow */ #define TARGET_GEN_INTDIV -2/* integer division by zero */
linux-user/arm/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/arm/target_cpu.h +4 -0
@@ -49,4 +49,8 @@ static inline target_ulong cpu_get_tls(CPUARMState *env) } } +static inline abi_ulong get_sp_from_cpustate (CPUARMState *state) +{ +return state->regs[13 ]; +}#endif
linux-user/arm/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef ARM_TARGET_SIGNAL_H #define ARM_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,10 +19,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUARMState *state) -{ -return state->regs[13 ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* ARM_TARGET_SIGNAL_H */
linux-user/cris/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/cris/target_cpu.h +4 -0
@@ -33,4 +33,8 @@ static inline void cpu_set_tls(CPUCRISState *env, target_ulong newtls) env->pregs[PR_PID] = (env->pregs[PR_PID] & 0xff) | newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUCRISState *state) +{ +return state->regs[14 ]; +}#endif
linux-user/cris/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef CRIS_TARGET_SIGNAL_H #define CRIS_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,10 +19,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUCRISState *state) -{ -return state->regs[14 ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* CRIS_TARGET_SIGNAL_H */
linux-user/hppa/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/hppa/target_cpu.h +6 -2
@@ -16,8 +16,8 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef ALPHA_TARGET_CPU_H -#define ALPHA_TARGET_CPU_H +#ifndef HPPA_TARGET_CPU_H +#define HPPA_TARGET_CPU_H static inline void cpu_clone_regs (CPUHPPAState *env,target_ulong newsp) {
@@ -36,4 +36,8 @@ static inline void cpu_set_tls(CPUHPPAState *env, target_ulong newtls) env->cr[27] = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUHPPAState *state) +{ +return state->gr[30 ]; +}#endif
linux-user/hppa/target_signal.h +0 -6
@@ -1,8 +1,6 @@ #ifndef HPPA_TARGET_SIGNAL_H #define HPPA_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,8 +19,4 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUHPPAState *state) -{ -return state->gr[30 ]; -}#endif /* HPPA_TARGET_SIGNAL_H */
linux-user/i386/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/i386/target_cpu.h +4 -0
@@ -45,4 +45,8 @@ static inline void cpu_set_tls(CPUX86State *env, target_ulong newtls) }#endif /* defined(TARGET_ABI32) */ +static inline abi_ulong get_sp_from_cpustate (CPUX86State *state) +{ +return state->regs[R_ESP ]; +}#endif /* I386_TARGET_CPU_H */
linux-user/i386/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef I386_TARGET_SIGNAL_H #define I386_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,10 +19,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUX86State *state) -{ -return state->regs[R_ESP ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* I386_TARGET_SIGNAL_H */
linux-user/m68k/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/m68k/target_cpu.h +4 -0
@@ -37,4 +37,8 @@ static inline void cpu_set_tls(CPUM68KState *env, target_ulong newtls) ts->tp_value = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUM68KState *state) +{ +return state->aregs[7 ]; +}#endif
linux-user/m68k/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef M68K_TARGET_SIGNAL_H #define M68K_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,10 +19,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUM68KState *state) -{ -return state->aregs[7 ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* M68K_TARGET_SIGNAL_H */
linux-user/microblaze/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/microblaze/target_cpu.h +4 -0
@@ -32,4 +32,8 @@ static inline void cpu_set_tls(CPUMBState *env, target_ulong newtls) env->regs[21] = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUMBState *state) +{ +return state->regs[1 ]; +}#endif
linux-user/microblaze/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef MICROBLAZE_TARGET_SIGNAL_H #define MICROBLAZE_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,10 +19,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUMBState *state) -{ -return state->regs[1 ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* MICROBLAZE_TARGET_SIGNAL_H */
linux-user/mips/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/mips/target_cpu.h +4 -0
@@ -33,4 +33,8 @@ static inline void cpu_set_tls(CPUMIPSState *env, target_ulong newtls) env->active_tc.CP0_UserLocal = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUMIPSState *state) +{ +return state->active_tc.gpr[29 ]; +}#endif
linux-user/mips/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef MIPS_TARGET_SIGNAL_H #define MIPS_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,11 +19,6 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUMIPSState *state) -{ -return state->active_tc.gpr[29 ]; -} -#if defined(TARGET_ABI_MIPSO32 )/* compare linux/arch/mips/kernel/signal.c:setup_frame() */ #define TARGET_ARCH_HAS_SETUP_FRAME
linux-user/mips64/target_signal.h +0 -6
@@ -1,8 +1,6 @@ #ifndef MIPS64_TARGET_SIGNAL_H #define MIPS64_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,8 +19,4 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUMIPSState *state) -{ -return state->active_tc.gpr[29 ]; -}#endif /* MIPS64_TARGET_SIGNAL_H */
linux-user/nios2/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/nios2/target_cpu.h +4 -0
@@ -36,4 +36,8 @@ static inline void cpu_set_tls(CPUNios2State *env, target_ulong newtls) */ } +static inline abi_ulong get_sp_from_cpustate (CPUNios2State *state) +{ +return state->regs[R_SP ]; +}#endif
linux-user/nios2/target_signal.h +0 -6
@@ -1,8 +1,6 @@ #ifndef TARGET_SIGNAL_H #define TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -18,8 +16,4 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUNios2State *state) -{ -return state->regs[R_SP ]; -}#endif /* TARGET_SIGNAL_H */
linux-user/openrisc/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/openrisc/target_cpu.h +4 -0
@@ -33,4 +33,8 @@ static inline void cpu_set_tls(CPUOpenRISCState *env, target_ulong newtls) cpu_set_gpr(env, 10, newtls); } +static inline abi_ulong get_sp_from_cpustate (CPUOpenRISCState *state) +{ +return cpu_get_gpr (state,1 ); +}#endif
linux-user/openrisc/target_signal.h +0 -6
@@ -1,8 +1,6 @@ #ifndef OPENRISC_TARGET_SIGNAL_H #define OPENRISC_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -18,8 +16,4 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUOpenRISCState *state) -{ -return cpu_get_gpr (state,1 ); -}#endif /* OPENRISC_TARGET_SIGNAL_H */
linux-user/ppc/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/ppc/target_cpu.h +4 -1
@@ -47,5 +47,8 @@ static inline uint32_t get_ppc64_abi(struct image_info *infop) return infop->elf_flags & EF_PPC64_ABI; } - +static inline abi_ulong get_sp_from_cpustate (CPUPPCState *state) +{ +return state->gpr[1 ]; +}#endif
linux-user/ppc/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef PPC_TARGET_SIGNAL_H #define PPC_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,11 +19,6 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUPPCState *state) -{ -return state->gpr[1 ]; -} -#if !defined(TARGET_PPC64 )#define TARGET_ARCH_HAS_SETUP_FRAME #endif
linux-user/qemu.h +0 -1
@@ -623,7 +623,6 @@ static inline void *lock_user_string(abi_ulong guest_addr)* above, so include them last. */ #include "target_cpu.h" -#include "target_signal.h" #include "target_structs.h" #endif /* QEMU_H */
linux-user/riscv/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/riscv/target_cpu.h +4 -0
@@ -15,4 +15,8 @@ static inline void cpu_set_tls(CPURISCVState *env, target_ulong newtls) env->gpr[xTP] = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPURISCVState *state) +{ +return state->gpr[xSP]; +}#endif
linux-user/riscv/target_signal.h +0 -6
@@ -1,8 +1,6 @@ #ifndef TARGET_SIGNAL_H #define TARGET_SIGNAL_H -#include "cpu.h" - typedef struct target_sigaltstack { abi_ulong ss_sp; abi_int ss_flags;
@@ -15,8 +13,4 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPURISCVState *state) -{ -return state->gpr[xSP]; -}#endif /* TARGET_SIGNAL_H */
linux-user/s390x/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/s390x/target_cpu.h +4 -0
@@ -36,4 +36,8 @@ static inline void cpu_set_tls(CPUS390XState *env, target_ulong newtls) env->aregs[1] = newtls & 0xffffffffULL; } +static inline abi_ulong get_sp_from_cpustate (CPUS390XState *state) +{ +return state->regs[15 ]; +}#endif
linux-user/s390x/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef S390X_TARGET_SIGNAL_H #define S390X_TARGET_SIGNAL_H -#include "cpu.h" - typedef struct target_sigaltstack { abi_ulong ss_sp; int ss_flags;
@@ -18,10 +16,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUS390XState *state) -{ -return state->regs[15 ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* S390X_TARGET_SIGNAL_H */
linux-user/sh4/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/sh4/target_cpu.h +4 -0
@@ -32,4 +32,8 @@ static inline void cpu_set_tls(CPUSH4State *env, target_ulong newtls) env->gbr = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUSH4State *state) +{ +return state->gregs[15 ]; +}#endif
linux-user/sh4/target_signal.h +0 -7
@@ -1,8 +1,6 @@ #ifndef SH4_TARGET_SIGNAL_H #define SH4_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,10 +19,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUSH4State *state) -{ -return state->gregs[15 ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* SH4_TARGET_SIGNAL_H */
linux-user/signal.c +0 -1
@@ -23,7 +23,6 @@#include "qemu.h" #include "qemu-common.h" -#include "target_signal.h" #include "trace.h" #include "signal-common.h"
linux-user/sparc/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/sparc/target_cpu.h +11 -0
@@ -41,4 +41,15 @@ static inline void cpu_set_tls(CPUSPARCState *env, target_ulong newtls) env->gregs[7] = newtls; } +#ifndef UREG_I6 +#define UREG_I6 6 +#endif +#ifndef UREG_FP +#define UREG_FP UREG_I6 +#endif + +static inline abi_ulong get_sp_from_cpustate (CPUSPARCState *state) +{ +return state->regwptr[UREG_FP ]; +}#endif
linux-user/sparc/target_signal.h +0 -14
@@ -1,8 +1,6 @@ #ifndef SPARC_TARGET_SIGNAL_H #define SPARC_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,17 +19,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 4096#define TARGET_SIGSTKSZ 16384 -#ifndef UREG_I6 -#define UREG_I6 6 -#endif -#ifndef UREG_FP -#define UREG_FP UREG_I6 -#endif - -static inline abi_ulong get_sp_from_cpustate (CPUSPARCState *state) -{ -return state->regwptr[UREG_FP ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* SPARC_TARGET_SIGNAL_H */
linux-user/sparc64/target_signal.h +0 -14
@@ -1,8 +1,6 @@ #ifndef SPARC64_TARGET_SIGNAL_H #define SPARC64_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,17 +19,5 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 4096#define TARGET_SIGSTKSZ 16384 -#ifndef UREG_I6 -#define UREG_I6 6 -#endif -#ifndef UREG_FP -#define UREG_FP UREG_I6 -#endif - -static inline abi_ulong get_sp_from_cpustate (CPUSPARCState *state) -{ -return state->regwptr[UREG_FP ]; -} -#define TARGET_ARCH_HAS_SETUP_FRAME #endif /* SPARC64_TARGET_SIGNAL_H */
linux-user/syscall_defs.h +2 -0
@@ -482,6 +482,8 @@ int do_sigaction(int sig, const struct target_sigaction *act,#define TARGET_SA_RESTORER 0x04000000#endif +#include "target_signal.h" +#ifdef TARGET_SA_RESTORER #define TARGET_ARCH_HAS_SA_RESTORER 1#endif
linux-user/tilegx/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/tilegx/target_cpu.h +4 -0
@@ -32,4 +32,8 @@ static inline void cpu_set_tls(CPUTLGState *env, target_ulong newtls) env->regs[TILEGX_R_TP] = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUTLGState *state) +{ +return state->regs[TILEGX_R_SP ]; +}#endif
linux-user/tilegx/target_signal.h +0 -6
@@ -1,8 +1,6 @@ #ifndef TILEGX_TARGET_SIGNAL_H #define TILEGX_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -20,8 +18,4 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUTLGState *state) -{ -return state->regs[TILEGX_R_SP ]; -}#endif /* TILEGX_TARGET_SIGNAL_H */
linux-user/x86_64/target_signal.h +0 -6
@@ -1,8 +1,6 @@ #ifndef X86_64_TARGET_SIGNAL_H #define X86_64_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -21,8 +19,4 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUX86State *state) -{ -return state->regs[R_ESP ]; -}#endif /* X86_64_TARGET_SIGNAL_H */
linux-user/xtensa/signal.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" #include "qemu.h" -#include "target_signal.h" #include "signal-common.h" #include "linux-user/trace.h"
linux-user/xtensa/target_cpu.h +4 -0
@@ -19,4 +19,8 @@ static inline void cpu_set_tls(CPUXtensaState *env, target_ulong newtls) env->uregs[THREADPTR] = newtls; } +static inline abi_ulong get_sp_from_cpustate (CPUXtensaState *state) +{ +return state->regs[1 ]; +}#endif
linux-user/xtensa/target_signal.h +0 -6
@@ -1,8 +1,6 @@ #ifndef XTENSA_TARGET_SIGNAL_H #define XTENSA_TARGET_SIGNAL_H -#include "cpu.h" - /* this struct defines a stack used during syscall handling */ typedef struct target_sigaltstack {
@@ -20,8 +18,4 @@ typedef struct target_sigaltstack {#define TARGET_MINSIGSTKSZ 2048#define TARGET_SIGSTKSZ 8192 -static inline abi_ulong get_sp_from_cpustate (CPUXtensaState *state) -{ -return state->regs[1 ]; -}#endif
Signature · 1 line
2.14.3
This series seems to have some coding style problems. See output below for more information:
Hi,
This series seems to have some coding style problems. See output below for more information:
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PULL 00/17] Linux user for 3.0 patches
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do
echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
* [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'b10478242d linux-user: remove useless #if7e14034963 linux-user: move hppa signal definitions to hppa/target_signal.h 00c6a0fd0f linux-user: move alpha signal definitions to alpha/target_signal.h 7eb8748ab0 linux-user: move openrisc signal definitions to openrisc/target_signal.h 1cc90355ad linux-user: move mips signal definitions to mips/target_signal.h 5065e2156d linux-user: move sparc signal definitions to sparc/target_signal.h 773e331d15 linux-user: move generic signal definitions to generic/signal.h b171890620 linux-user: move get_sp_from_cpustate() to target_cpu.h98f034ebc3 linux-user: move sparc/sparc64 fcntl definitions to sparc/target_fcntl.h 2593fb53e0 linux-user: move ppc fcntl definitions to ppc/target_fcntl.h81ea11e0bb linux-user: move mips/mips64 fcntl definitions to mips/target_fcntl.h 79d45083df linux-user: move arm/aarch64/m68k fcntl definitions to [arm|aarch64|m68k]/target_fcntl.h 094dc23513 linux-user: move hppa fcntl definitions to hppa/target_fcntl.h c269473465 linux-user: move alpha fcntl definitions to alpha/target_fcntl.h d6b1545efd linux-user: move generic fcntl definitions to generic/fcntl.h8722c0d847 linux-user: SPARC "rd %tick" can be used by user application66eb4d4878 syscall: replace strcpy() by g_strlcpy()
=== OUTPUT BEGIN ===
Checking PATCH 1/17: syscall: replace strcpy() by g_strlcpy()... Checking PATCH 2/17: linux-user: SPARC "rd %tick" can be used by user application... Checking PATCH 3/17: linux-user: move generic fcntl definitions to generic/fcntl.h...
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #15:
new file mode 100644
total: 0 errors, 1 warnings, 528 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 4/17: linux-user: move alpha fcntl definitions to alpha/target_fcntl.h... Checking PATCH 5/17: linux-user: move hppa fcntl definitions to hppa/target_fcntl.h... Checking PATCH 6/17: linux-user: move arm/aarch64/m68k fcntl definitions to [arm|aarch64|m68k]/target_fcntl.h... Checking PATCH 7/17: linux-user: move mips/mips64 fcntl definitions to mips/target_fcntl.h...
ERROR: space prohibited between function name and open parenthesis '('
#99: FILE: linux-user/syscall_defs.h:2429:
+#if defined (TARGET_PPC)
total: 1 errors, 0 warnings, 87 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Checking PATCH 8/17: linux-user: move ppc fcntl definitions to ppc/target_fcntl.h...
ERROR: space prohibited between function name and open parenthesis '(' #42: FILE: linux-user/syscall_defs.h:2429:
+#if defined (TARGET_SPARC)
total: 1 errors, 0 warnings, 24 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Checking PATCH 9/17: linux-user: move sparc/sparc64 fcntl definitions to sparc/target_fcntl.h... Checking PATCH 10/17: linux-user: move get_sp_from_cpustate() to target_cpu.h... Checking PATCH 11/17: linux-user: move generic signal definitions to generic/signal.h...
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#50:
new file mode 100644
total: 0 errors, 1 warnings, 219 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 12/17: linux-user: move sparc signal definitions to sparc/target_signal.h... Checking PATCH 13/17: linux-user: move mips signal definitions to mips/target_signal.h...
WARNING: line over 80 characters
#41: FILE: linux-user/mips/target_signal.h:24:
+#define TARGET_SIGCLD TARGET_SIGCHLD /* Same as TARGET_SIGCHLD (System V). */
WARNING: line over 80 characters
#44: FILE: linux-user/mips/target_signal.h:27:
+#define TARGET_SIGURG 21 /* Urgent condition on socket (4.2 BSD). */
WARNING: line over 80 characters
#46: FILE: linux-user/mips/target_signal.h:29:
+#define TARGET_SIGPOLL TARGET_SIGIO /* Pollable event occurred (System V). */
WARNING: line over 80 characters
#55: FILE: linux-user/mips/target_signal.h:38:
+#define TARGET_SIGXFSZ 31 /* File size limit exceeded (4.2 BSD). */
WARNING: line over 80 characters
#109: FILE: linux-user/mips64/target_signal.h:24:
+#define TARGET_SIGCLD TARGET_SIGCHLD /* Same as TARGET_SIGCHLD (System V). */
WARNING: line over 80 characters
#112: FILE: linux-user/mips64/target_signal.h:27:
+#define TARGET_SIGURG 21 /* Urgent condition on socket (4.2 BSD). */
WARNING: line over 80 characters
#114: FILE: linux-user/mips64/target_signal.h:29:
+#define TARGET_SIGPOLL TARGET_SIGIO /* Pollable event occurred (System V). */
WARNING: line over 80 characters
#123: FILE: linux-user/mips64/target_signal.h:38:
+#define TARGET_SIGXFSZ 31 /* File size limit exceeded (4.2 BSD). */
total: 0 errors, 8 warnings, 191 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 14/17: linux-user: move openrisc signal definitions to openrisc/target_signal.h... Checking PATCH 15/17: linux-user: move alpha signal definitions to alpha/target_signal.h... Checking PATCH 16/17: linux-user: move hppa signal definitions to hppa/target_signal.h... Checking PATCH 17/17: linux-user: remove useless #if...
=== OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Peter Maydell
AppliedQuoted 10 lines · Laurent Vivier
The following changes since commit
392fba9f583223786f844dce9b2e7f9a0ce0147a:Merge remote-tracking branch 'remotes/stsquad/tags/pull-travis-updates-010618-1' into staging (2018-06-01 17:32:30 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.gittags/linux-user-for-3.0-pull-requestfor you to fetch changes up to
7ea65371ee6ba714c5b369b38dd608b128dab57c:
Quoted 8 lines
linux-user: remove useless #if (2018-06-04 01:30:44 +0200)
----------------------------------------------------------------
move more data to arch specific files
fix SPARC %tick
replacestrcpy()byg_strlcpy()insyscall.c----------------------------------------------------------------
Applied, thanks.
-- PMM