[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 01/15] compiler.h: add QEMU_ALIGNED() to enforce
From: |
Emilio G. Cota |
Subject: |
[Qemu-devel] [PATCH v6 01/15] compiler.h: add QEMU_ALIGNED() to enforce struct alignment |
Date: |
Tue, 24 May 2016 21:13:08 -0400 |
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
---
include/qemu/compiler.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h
index 8f1cc7b..b64f899 100644
--- a/include/qemu/compiler.h
+++ b/include/qemu/compiler.h
@@ -41,6 +41,8 @@
# define QEMU_PACKED __attribute__((packed))
#endif
+#define QEMU_ALIGNED(X) __attribute__((aligned(X)))
+
#ifndef glue
#define xglue(x, y) x ## y
#define glue(x, y) xglue(x, y)
--
2.5.0
- Re: [Qemu-devel] [PATCH v6 02/15] seqlock: remove optional mutex, (continued)
- [Qemu-devel] [PATCH v6 11/15] qht: add test program, Emilio G. Cota, 2016/05/24
- [Qemu-devel] [PATCH v6 01/15] compiler.h: add QEMU_ALIGNED() to enforce struct alignment,
Emilio G. Cota <=
- [Qemu-devel] [PATCH v6 15/15] translate-all: add tb hash bucket info to 'info jit' dump, Emilio G. Cota, 2016/05/24
- [Qemu-devel] [PATCH v6 14/15] tb hash: track translated blocks with qht, Emilio G. Cota, 2016/05/24
- [Qemu-devel] [PATCH v6 07/15] tb hash: hash phys_pc, pc, and flags with xxhash, Emilio G. Cota, 2016/05/24
- [Qemu-devel] [PATCH v6 12/15] qht: add qht-bench, a performance benchmark, Emilio G. Cota, 2016/05/24