1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

riscv: change stack alignment to 16

This commit is contained in:
Ekaitz Zarraga 2024-11-15 21:51:39 +01:00
parent 285cfd284a
commit ce8b8e4778

View file

@ -124,7 +124,7 @@ next_abi_arg(struct abi_arg_iterator *iter, jit_operand_t *arg)
} }
*arg = jit_operand_mem (abi, JIT_SP, iter->stack_size); *arg = jit_operand_mem (abi, JIT_SP, iter->stack_size);
#if __WORDSIZE == 32 #if __WORDSIZE == 32
iter->stack_size += 4; iter->stack_size += 4 + (abi == JIT_OPERAND_ABI_DOUBLE ? 4 : 0);
#elif __WORDSIZE == 64 #elif __WORDSIZE == 64
iter->stack_size += 8; iter->stack_size += 8;
#endif #endif
@ -141,7 +141,7 @@ jit_flush(void *fptr, void *tptr)
static inline size_t static inline size_t
jit_stack_alignment(void) jit_stack_alignment(void)
{ {
return 8; return 16;
// NOTE: See: https://github.com/riscv/riscv-gcc/issues/61 // NOTE: See: https://github.com/riscv/riscv-gcc/issues/61
} }