[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 15/19] linux-user: Split out pread64, pwrite6
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v3 15/19] linux-user: Split out pread64, pwrite64 |
Date: |
Tue, 12 Jun 2018 16:02:06 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 06/12/2018 02:44 PM, Richard Henderson wrote:
> On 06/12/2018 06:37 AM, Philippe Mathieu-Daudé wrote:
>>> /* Both preadv and pwritev merge args 4/5 into a 64-bit offset.
>>> * Moreover, the parts are *always* in little-endian order.
>>> */
>>> #if TARGET_ABI_BITS == 32
>>> SYSCALL_ARGS(preadv_pwritev)
>>> {
>>> - /* We have already assigned out[0-3]. */
>>> - abi_ulong lo = in[4], hi = in[5];
>>> - out[4] = ((hi << (TARGET_ABI_BITS - 1)) << 1) | lo;
>>> + /* We have already assigned out[0-2]. */
>>> + abi_ulong lo = in[3], hi = in[4];
>>> + out[3] = ((hi << (TARGET_ABI_BITS - 1)) << 1) | lo;
>> Why this change? If correct, can you update the comment?
>> Also this seems related to your previous patch #14: "Split out preadv,
>> pwritev, readv, writev", not this one.
>>
>
> You're right, this hunk should be folded back into the previous patch.
So for this patch without this hunk:
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
- [Qemu-devel] [PATCH v3 07/19] linux-user: Relax single exit from "break", (continued)
- [Qemu-devel] [PATCH v3 07/19] linux-user: Relax single exit from "break", Richard Henderson, 2018/06/11
- [Qemu-devel] [PATCH v3 12/19] linux-user: Setup split syscall infrastructure, Richard Henderson, 2018/06/11
- [Qemu-devel] [PATCH v3 13/19] linux-user: Split out close, open, openat, read, write, Richard Henderson, 2018/06/11
- [Qemu-devel] [PATCH v3 14/19] linux-user: Split out preadv, pwritev, readv, writev, Richard Henderson, 2018/06/11
- [Qemu-devel] [PATCH v3 15/19] linux-user: Split out pread64, pwrite64, Richard Henderson, 2018/06/11
- [Qemu-devel] [PATCH v3 16/19] linux-user: Split out name_to_handle_at, open_by_handle_at, Richard Henderson, 2018/06/11
- [Qemu-devel] [PATCH v3 18/19] linux-user: Split out memory syscalls, Richard Henderson, 2018/06/11
- [Qemu-devel] [PATCH v3 17/19] linux-user: Split out ipc syscalls, Richard Henderson, 2018/06/11
- [Qemu-devel] [PATCH v3 19/19] linux-user: Split out some process syscalls, Richard Henderson, 2018/06/11
- Re: [Qemu-devel] [PATCH v3 00/19] linux-user: Split do_syscall, no-reply, 2018/06/11
- Re: [Qemu-devel] [PATCH v3 00/19] linux-user: Split do_syscall, Laurent Vivier, 2018/06/12
- Re: [Qemu-devel] [PATCH v3 00/19] linux-user: Split do_syscall, Peter Maydell, 2018/06/22