Re: [Qemu-devel] [PATCH 4/6] linux-user: Provide safe_syscall for aarch64

2016-06-13 Thread Peter Maydell
On 13 June 2016 at 23:38, Richard Henderson wrote: > On 06/13/2016 03:28 PM, Peter Maydell wrote: >> glibc's syscall() takes the system parameter as an int and >> does a sign-extending move into x0 with an uxtw. >> safe_syscall() takes a long, so it's already 64 bits. > > >

Re: [Qemu-devel] [PATCH 4/6] linux-user: Provide safe_syscall for aarch64

2016-06-13 Thread Richard Henderson
On 06/13/2016 03:28 PM, Peter Maydell wrote: On 13 June 2016 at 23:21, Richard Henderson wrote: On 06/13/2016 03:04 PM, Peter Maydell wrote: +.global safe_syscall_base +.global safe_syscall_start +.global safe_syscall_end +.type

Re: [Qemu-devel] [PATCH 4/6] linux-user: Provide safe_syscall for aarch64

2016-06-13 Thread Peter Maydell
On 13 June 2016 at 23:21, Richard Henderson wrote: > On 06/13/2016 03:04 PM, Peter Maydell wrote: >>> >>> +.global safe_syscall_base >>> +.global safe_syscall_start >>> +.global safe_syscall_end >>> +.type safe_syscall_base, #function >>> +

Re: [Qemu-devel] [PATCH 4/6] linux-user: Provide safe_syscall for aarch64

2016-06-13 Thread Peter Maydell
On 13 June 2016 at 23:28, Peter Maydell wrote: > glibc's syscall() takes the system parameter as an int and > does a sign-extending move into x0 with an uxtw. ...zero-extending... -- PMM

Re: [Qemu-devel] [PATCH 4/6] linux-user: Provide safe_syscall for aarch64

2016-06-13 Thread Richard Henderson
On 06/13/2016 03:04 PM, Peter Maydell wrote: +.global safe_syscall_base +.global safe_syscall_start +.global safe_syscall_end +.type safe_syscall_base, #function +.type safe_syscall_start, #function +.type safe_syscall_end, #function _start

Re: [Qemu-devel] [PATCH 4/6] linux-user: Provide safe_syscall for aarch64

2016-06-13 Thread Peter Maydell
On 13 June 2016 at 22:45, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > linux-user/host/aarch64/hostdep.h | 34 ++ > linux-user/host/aarch64/safe-syscall.inc.S | 72 > ++ > 2 files

[Qemu-devel] [PATCH 4/6] linux-user: Provide safe_syscall for aarch64

2016-06-13 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/host/aarch64/hostdep.h | 34 ++ linux-user/host/aarch64/safe-syscall.inc.S | 72 ++ 2 files changed, 106 insertions(+) create mode 100644 linux-user/host/aarch64/hostdep.h create