sparc-linux-user improvments
cover sparc-linux-user improvments
These are three patches split out from my recent Sparc VIS emulation series that are totally independent of target-sparc/.
r~
Richard Henderson (3):
sparc-linux-user: Handle SIGILL.
sparc-linux-user: Fixup sending SIGSEGV
sparc-linux-user: Add some missing syscall numbers
linux-user/main.c | 13 +++++++++++-- linux-user/sparc/syscall_nr.h | 3 +++ 2 files changed, 14 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.6.4
PATCH 1/3 sparc-linux-user: Handle SIGILL.
Signed-off-by Richard Henderson <[email protected]>
--- linux-user/main.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
linux-user/main.c +9 -0
@@ -1191,6 +1191,15 @@ void cpu_loop (CPUSPARCState *env)case EXCP_INTERRUPT :/* just indicate that signals should be handled asap */ break ; +case TT_ILL_INSN : + { + info.si_signo =TARGET_SIGILL ; + info.si_errno =0 ; + info.si_code =TARGET_ILL_ILLOPC ; + info._sifields._sigfault._addr = env->pc; +queue_signal (env, info.si_signo, &info); + } +break ;case EXCP_DEBUG : {int sig;
Signature · 1 line
1.7.6.4
PATCH 2/3 sparc-linux-user: Fixup sending SIGSEGV
In reply to Richard HendersonSigned-off-by Richard Henderson <[email protected]>
--- linux-user/main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
linux-user/main.c +2 -2
@@ -1148,7 +1148,7 @@ void cpu_loop (CPUSPARCState *env)case TT_TFAULT :case TT_DFAULT : { - info.si_signo =SIGSEGV ; + info.si_signo =TARGET_SIGSEGV ; info.si_errno =0 ;/* XXX: check env->error_code */ info.si_code =TARGET_SEGV_MAPERR ;
@@ -1166,7 +1166,7 @@ void cpu_loop (CPUSPARCState *env)case TT_TFAULT :case TT_DFAULT : { - info.si_signo =SIGSEGV ; + info.si_signo =TARGET_SIGSEGV ; info.si_errno =0 ;/* XXX: check env->error_code */ info.si_code =TARGET_SEGV_MAPERR ;
Signature · 1 line
1.7.6.4
PATCH 3/3 sparc-linux-user: Add some missing syscall numbers
In reply to Richard HendersonSigned-off-by Richard Henderson <[email protected]>
--- linux-user/sparc/syscall_nr.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
linux-user/sparc/syscall_nr.h +3 -0
@@ -136,6 +136,7 @@#define TARGET_NR_utimes 138/* SunOS Specific */ #define TARGET_NR_stat64 139/* Linux sparc32 Specific */ #define TARGET_NR_getpeername 141/* Common */ +#define TARGET_NR_futex 142/* gethostid under SunOS */ #define TARGET_NR_gettid 143/* ENOSYS under SunOS */ #define TARGET_NR_getrlimit 144/* Common */ #define TARGET_NR_setrlimit 145/* Common */
@@ -153,6 +154,7 @@#define TARGET_NR_getdomainname 162/* SunOS Specific */ #define TARGET_NR_setdomainname 163/* Common */ #define TARGET_NR_quotactl 165/* Common */ +#define TARGET_NR_set_tid_address 166/* Linux specific, exportfs under SunOS */ #define TARGET_NR_mount 167/* Common */ #define TARGET_NR_ustat 168/* Common */ #define TARGET_NR_getdents 174/* Common */
@@ -177,6 +179,7 @@#define TARGET_NR_readahead 205/* Linux Specific */ #define TARGET_NR_socketcall 206/* Linux Specific */ #define TARGET_NR_syslog 207/* Linux Specific */ +#define TARGET_NR_tgkill 211/* Linux Specific */ #define TARGET_NR_waitpid 212/* Linux Specific */ #define TARGET_NR_swapoff 213/* Linux Specific */ #define TARGET_NR_sysinfo 214/* Linux Specific */
Signature · 1 line
1.7.6.4