[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 02/13] compiler.h: add QEMU_ALIGNED() to enforce
From: |
Emilio G. Cota |
Subject: |
[Qemu-devel] [PATCH v2 02/13] compiler.h: add QEMU_ALIGNED() to enforce struct alignment |
Date: |
Thu, 7 Apr 2016 13:32:27 -0400 |
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..1978ddc 100644
--- a/include/qemu/compiler.h
+++ b/include/qemu/compiler.h
@@ -41,6 +41,8 @@
# define QEMU_PACKED __attribute__((packed))
#endif
+#define QEMU_ALIGNED(B) __attribute__((aligned(B)))
+
#ifndef glue
#define xglue(x, y) x ## y
#define glue(x, y) xglue(x, y)
--
2.5.0
- [Qemu-devel] [PATCH v2 09/13] exec: add tb_hash_func5, derived from xxhash, (continued)
- [Qemu-devel] [PATCH v2 09/13] exec: add tb_hash_func5, derived from xxhash, Emilio G. Cota, 2016/04/07
- [Qemu-devel] [PATCH v2 04/13] seqlock: rename write_lock/unlock to write_begin/end, Emilio G. Cota, 2016/04/07
- [Qemu-devel] [PATCH v2 06/13] qemu-thread: add simple test-and-set spinlock, Emilio G. Cota, 2016/04/07
- [Qemu-devel] [PATCH v2 10/13] tb hash: hash phys_pc, pc, and flags with xxhash, Emilio G. Cota, 2016/04/07
- [Qemu-devel] [PATCH v2 02/13] compiler.h: add QEMU_ALIGNED() to enforce struct alignment,
Emilio G. Cota <=
- [Qemu-devel] [PATCH v2 08/13] qemu-thread: optimize spin_lock for uncontended locks, Emilio G. Cota, 2016/04/07
- [Qemu-devel] [PATCH v2 07/13] qemu-thread: call cpu_relax() while spinning, Emilio G. Cota, 2016/04/07
- [Qemu-devel] [PATCH v2 03/13] seqlock: remove optional mutex, Emilio G. Cota, 2016/04/07
- Re: [Qemu-devel] [PATCH v2 00/10] tb hash improvements, Alex Bennée, 2016/04/08
- Message not available