From 73cffe283a56be139fd26dba5481595e89eb0dd2 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 29 May 2021 23:42:29 +0900 Subject: [PATCH] [qwaq] Ensure qwaq_event_t's when is aligned While qfcc will always align double values to 8 bytes (really, two global words) regardless of the underlying hardware, gcc does not: doubles are only 4-byte aligned on 32-bit hardware. This fixes the invalid debug target handle when running on i686. --- ruamoko/qwaq/ui/event.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ruamoko/qwaq/ui/event.h b/ruamoko/qwaq/ui/event.h index d8fe09c6c..a3c9525b0 100644 --- a/ruamoko/qwaq/ui/event.h +++ b/ruamoko/qwaq/ui/event.h @@ -68,6 +68,7 @@ typedef union qwaq_message_s { typedef struct qwaq_event_s { int what; + int __pad; double when; // NOTE: 1<<32 based union { qwaq_kevent_t key;