]> Git Repo - qemu.git/commit
memory: Align MemoryRegionSections fields
authorDr. David Alan Gilbert <[email protected]>
Wed, 14 Aug 2019 17:55:33 +0000 (18:55 +0100)
committerMichael S. Tsirkin <[email protected]>
Wed, 25 Sep 2019 14:15:59 +0000 (10:15 -0400)
commit44f85d3276397cfa2cfa379c61430405dad4e644
treec6becbd0f6542b0f4ead53b32ab481ec9f63ca58
parent240ab11fb72049d6373cbbec8d788f8e411a00bc
memory: Align MemoryRegionSections fields

MemoryRegionSection includes an Int128 'size' field;
on some platforms the compiler causes an alignment of this to
a 128bit boundary, leaving 8 bytes of dead space.
This deadspace can be filled with junk.

Move the size field to the top avoiding unnecessary alignment.

Signed-off-by: Dr. David Alan Gilbert <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <20190814175535[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
include/exec/memory.h
This page took 0.023284 seconds and 4 git commands to generate.