mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
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>
This commit is contained in:
parent
65c5b75c38
commit
47ae93cdfe
13 changed files with 1012 additions and 6 deletions
|
|
@ -71,7 +71,7 @@
|
|||
|| defined(TARGET_M68K) || defined(TARGET_CRIS) \
|
||||
|| defined(TARGET_UNICORE32) || defined(TARGET_S390X) \
|
||||
|| defined(TARGET_OPENRISC) || defined(TARGET_TILEGX) \
|
||||
|| defined(TARGET_NIOS2)
|
||||
|| defined(TARGET_NIOS2) || defined(TARGET_RISCV)
|
||||
|
||||
#define TARGET_IOC_SIZEBITS 14
|
||||
#define TARGET_IOC_DIRBITS 2
|
||||
|
|
@ -435,7 +435,8 @@ int do_sigaction(int sig, const struct target_sigaction *act,
|
|||
|| defined(TARGET_M68K) || defined(TARGET_ALPHA) || defined(TARGET_CRIS) \
|
||||
|| defined(TARGET_MICROBLAZE) || defined(TARGET_UNICORE32) \
|
||||
|| defined(TARGET_S390X) || defined(TARGET_OPENRISC) \
|
||||
|| defined(TARGET_TILEGX) || defined(TARGET_HPPA) || defined(TARGET_NIOS2)
|
||||
|| defined(TARGET_TILEGX) || defined(TARGET_HPPA) || defined(TARGET_NIOS2) \
|
||||
|| defined(TARGET_RISCV)
|
||||
|
||||
#if defined(TARGET_SPARC)
|
||||
#define TARGET_SA_NOCLDSTOP 8u
|
||||
|
|
@ -2093,7 +2094,7 @@ struct target_stat {
|
|||
unsigned int __unused[2];
|
||||
};
|
||||
#elif defined(TARGET_OPENRISC) || defined(TARGET_TILEGX) || \
|
||||
defined(TARGET_NIOS2)
|
||||
defined(TARGET_NIOS2) || defined(TARGET_RISCV)
|
||||
|
||||
/* These are the asm-generic versions of the stat and stat64 structures */
|
||||
|
||||
|
|
@ -2120,6 +2121,7 @@ struct target_stat {
|
|||
unsigned int __unused5;
|
||||
};
|
||||
|
||||
#if !defined(TARGET_RISCV64)
|
||||
#define TARGET_HAS_STRUCT_STAT64
|
||||
struct target_stat64 {
|
||||
uint64_t st_dev;
|
||||
|
|
@ -2143,6 +2145,7 @@ struct target_stat64 {
|
|||
unsigned int __unused4;
|
||||
unsigned int __unused5;
|
||||
};
|
||||
#endif
|
||||
|
||||
#elif defined(TARGET_HPPA)
|
||||
|
||||
|
|
@ -2258,8 +2261,8 @@ struct target_statfs64 {
|
|||
uint32_t f_spare[6];
|
||||
};
|
||||
#elif (defined(TARGET_PPC64) || defined(TARGET_X86_64) || \
|
||||
defined(TARGET_SPARC64) || defined(TARGET_AARCH64)) && \
|
||||
!defined(TARGET_ABI32)
|
||||
defined(TARGET_SPARC64) || defined(TARGET_AARCH64) || \
|
||||
defined(TARGET_RISCV)) && !defined(TARGET_ABI32)
|
||||
struct target_statfs {
|
||||
abi_long f_type;
|
||||
abi_long f_bsize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue