qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 5/7] net/eepro100: use QEMU_ALIGNED() macro


From: Philippe Mathieu-Daudé
Subject: [Qemu-devel] [PATCH 5/7] net/eepro100: use QEMU_ALIGNED() macro
Date: Mon, 8 Jan 2018 15:02:29 -0300

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
 hw/net/eepro100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c
index a07a63247e..61d767524f 100644
--- a/hw/net/eepro100.c
+++ b/hw/net/eepro100.c
@@ -266,7 +266,7 @@ typedef struct {
 
     /* 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] __attribute__((aligned(8)));
+    uint8_t mem[PCI_MEM_SIZE] QEMU_ALIGNED(8);
 
     /* Configuration bytes. */
     uint8_t configuration[22];
-- 
2.15.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]