[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 6/7] net/eepro100: reduce alignment to DWORD
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [RFC PATCH 6/7] net/eepro100: reduce alignment to DWORD (32bit) |
Date: |
Mon, 8 Jan 2018 15:28:13 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 01/08/2018 03:10 PM, Paolo Bonzini wrote:
> On 08/01/2018 19:02, Philippe Mathieu-Daudé wrote:
>> /* Data in mem is always in the byte order of the controller (le).
>> * It must be dword aligned to allow direct access to 32 bit values. */
>> - uint8_t mem[PCI_MEM_SIZE] QEMU_ALIGNED(8);
>> + uint8_t mem[PCI_MEM_SIZE] QEMU_ALIGNED(4);
>
> It's actually not needed at all, since accesses go through ld*_le_p and
> st*_le_p (commit 4d9be25, "hw/net/eepro100.c: Don't use cpu_to_*w() and
> *_to_cpup()", 2016-06-16).
Cool, I'll update this.
Thank you,
Phil.
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH 1/7] net: struct MACAddr can use the QEMU_PACKED macro, (continued)
- [Qemu-devel] [PATCH 2/7] net/eth: use the QEMU_PACKED macro, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-devel] [PATCH 4/7] net/rocker: move struct rocker_desc to C file, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-devel] [PATCH 5/7] net/eepro100: use QEMU_ALIGNED() macro, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-devel] [PATCH 3/7] net/rocker: use QEMU_PACKED and QEMU_ALIGNED() macros, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-devel] [RFC PATCH 6/7] net/eepro100: reduce alignment to DWORD (32bit), Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-devel] [PATCH 7/7] i386/pc: use the QEMU_ALIGNED() macro, Philippe Mathieu-Daudé, 2018/01/08