e5171a9eb9
linux-user: move generic signal definitions to generic/signal.h
...
No code change.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Message-Id: <20180529194207.31503-10-laurent@vivier.eu >
2018-06-04 01:30:44 +02:00
9850f9f63a
linux-user: move get_sp_from_cpustate() to target_cpu.h
...
Remove useless includes
Fix HPPA include guard.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Acked-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180529194207.31503-9-laurent@vivier.eu >
2018-06-04 01:30:44 +02:00
5de7706e2c
linux-user: move generic fcntl definitions to generic/fcntl.h
...
add a per target target_fcntl.h and include the generic one from them
No code change.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Message-Id: <20180529194207.31503-2-laurent@vivier.eu >
2018-06-04 01:30:43 +02:00
500fa60760
linux-user: move socket.h generic definitions to generic/sockbits.h
...
and include the file from architectures without specific definitions
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-Id: <20180519092956.15134-5-laurent@vivier.eu >
2018-05-25 10:10:55 +02:00
465e237bf7
linux-user: introduce target_sigsp() and target_save_altstack()
...
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411192347.30228-1-laurent@vivier.eu >
2018-05-03 18:29:15 +02:00
5a0b6d2286
linux-user: move riscv cpu loop to riscv directory
...
No code change, only move code from main.c to
riscv/cpu_loop.c.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Michael Clark <mjc@sifive.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180411185651.21351-18-laurent@vivier.eu >
2018-04-30 09:48:28 +02:00
cd71c08964
linux-user: create a dummy per arch cpu_loop.c
...
Create a cpu_loop-common.h for future use by
these new files and use it in the existing
main.c
Introduce target_cpu_copy_regs():
declare the function in cpu_loop-common.h
and an empty function for each target,
to move all the cpu_loop prologues to this function.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411185651.21351-2-laurent@vivier.eu >
2018-04-30 09:47:55 +02:00
cb6ac802ef
linux-user: define TARGET_ARCH_HAS_SETUP_FRAME
...
Instead of calling setup_frame() conditionally to a list of known targets,
define TARGET_ARCH_HAS_SETUP_FRAME if the target provides the function
and call it only if the macro is defined.
Move declarations of setup_frame() and setup_rt_frame() to
linux-user/signal-common.h
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-21-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
9c3221c192
linux-user: move riscv signal.c parts to riscv directory
...
No code change, only move code from signal.c to
riscv/signal.c, except adding includes and
exporting setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-14-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
befb7447a0
linux-user: create a dummy per arch signal.c
...
Create a signal-common.h for future use by these new files
and use it in the existing signal.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-2-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
b02ebad1dc
linux-user: set minimum uname for RISC-V
...
As support for RISC-V was only merged into the mainline kernel at 4.15
it is unlikely that glibc will be happy with a reported kernel version
of 3.8.0. Indeed when I testing binaries created by the current Debian
Sid compiler the tests failed with:
FATAL: kernel too old
Bump the version to the minimum a RISC-V glibc would expect:
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/riscv/configure.ac
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Palmer Dabbelt <palmer@sifive.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180425100218.24785-1-alex.bennee@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2018-04-30 09:47:46 +02:00
47ae93cdfe
RISC-V Linux User Emulation
...
Implementation of linux user emulation for RISC-V.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Sagar Karandikar <sagark@eecs.berkeley.edu >
Signed-off-by: Michael Clark <mjc@sifive.com >
2018-03-07 08:30:28 +13:00