[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/3] user-mode: Use QEMU_ALIGNED() on TaskState structure
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 1/3] user-mode: Use QEMU_ALIGNED() on TaskState structure |
Date: |
Thu, 4 Mar 2021 16:26:05 +0100 |
The rest of the codebase uses the QEMU_ALIGNED() introduced in
commit 911a4d2215b ("compiler.h: add QEMU_ALIGNED() to enforce
struct alignment"). Use it for the TaskState structure too.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
bsd-user/qemu.h | 2 +-
linux-user/qemu.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index d2bcaab7413..1ec14010216 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -96,7 +96,7 @@ typedef struct TaskState {
int signal_pending; /* non zero if a signal may be pending */
uint8_t stack[];
-} __attribute__((aligned(16))) TaskState;
+} QEMU_ALIGNED(16) TaskState;
void init_task_state(TaskState *ts);
extern const char *qemu_uname_release;
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 52c981710b4..d7815bfb845 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -157,7 +157,7 @@ typedef struct TaskState {
/* This thread's sigaltstack, if it has one */
struct target_sigaltstack sigaltstack_used;
-} __attribute__((aligned(16))) TaskState;
+} QEMU_ALIGNED(16) TaskState;
extern char *exec_path;
void init_task_state(TaskState *ts);
--
2.26.2