From 771897fa3779cbb6b83192fb62bbae610ebdd0d7 Mon Sep 17 00:00:00 2001 From: Jakub Piecuch Date: Mon, 4 Oct 2021 15:20:29 +0200 Subject: [PATCH] cpu/rocket: naturally align data defined in crt0.S The startup code accesses this data using sd/ld instructions, which require that the address being accessed is 8-byte aligned. The .dword asm directive does NOT imply any alignment, so we need to force it using the .align directive. --- litex/soc/cores/cpu/rocket/crt0.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/soc/cores/cpu/rocket/crt0.S b/litex/soc/cores/cpu/rocket/crt0.S index d28a5c04f..43a861563 100644 --- a/litex/soc/cores/cpu/rocket/crt0.S +++ b/litex/soc/cores/cpu/rocket/crt0.S @@ -112,11 +112,14 @@ inf_loop: j inf_loop .bss + .align 8 smp_ap_args: .dword 0 .dword 0 .dword 0 + .align 8 smp_ap_target: .dword 0 + .align 8 smp_ap_ready: .dword 0