diff mbox

[PULL,v2,09/13] linux-user: fix struct target_epoll_event layout for MIPS

Message ID fd7678324391d497b53afa40eeafe04cc05030df.1404041926.git.riku.voipio@linaro.org
State Accepted
Commit fd7678324391d497b53afa40eeafe04cc05030df
Headers show

Commit Message

Riku Voipio June 29, 2014, 12:14 p.m. UTC
From: Paul Burton <paul@archlinuxmips.org>

MIPS requires the pad field to 64b-align the data field just as ARM
does.

Signed-off-by: Paul Burton <paul@archlinuxmips.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 linux-user/syscall_defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 69c3982..e379b45 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -2528,7 +2528,7 @@  typedef union target_epoll_data {
 
 struct target_epoll_event {
     uint32_t events;
-#ifdef TARGET_ARM
+#if defined(TARGET_ARM) || defined(TARGET_MIPS) || defined(TARGET_MIPS64)
     uint32_t __pad;
 #endif
     target_epoll_data_t data;