Commit de97598
committed
sim: 16-byte align CSimContext on x86_64-pc-windows-gnu
The C `jmp_buf` embedded in this FFI struct needs 16-byte alignment under
mingw's setjmp (saves XMM registers with movaps). The C compiler aligns
the struct to 16 to satisfy that, but Rust's repr(C) only picked the
8-byte alignment of [u64; 48], so the field could land 8-byte aligned and
setjmp faulted with STATUS_ACCESS_VIOLATION.
Signed-off-by: José Simões <jose.simoes@eclo.solutions>1 parent 37048b1 commit de97598
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
0 commit comments