Skip to content

Commit 483c4b7

Browse files
committed
Fix struct alignment
1 parent db7cd24 commit 483c4b7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/core/thread_regs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub struct OtherModeRegs {
4747
pub spsr: u32,
4848
}
4949

50-
#[repr(C, align(64))]
50+
#[repr(C, align(32))]
5151
pub struct ThreadRegs {
5252
pub gp_regs: [u32; 13],
5353
pub sp: u32,

src/jit/jit_asm.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ impl JitBuf {
5050

5151
pub const RETURN_STACK_SIZE: usize = 16;
5252

53-
#[repr(C, align(64))]
53+
#[repr(C, align(32))]
5454
pub struct JitRuntimeData {
55-
pub idle_loop: bool,
56-
pub return_stack_ptr: u8,
57-
pub return_stack: [u32; RETURN_STACK_SIZE],
5855
pub pre_cycle_count_sum: u16,
5956
pub accumulated_cycles: u16,
6057
pub host_sp: usize,
58+
pub idle_loop: bool,
59+
pub return_stack_ptr: u8,
60+
pub return_stack: [u32; RETURN_STACK_SIZE],
6161
pub branch_out_pc: u32,
6262
}
6363

0 commit comments

Comments
 (0)