From 632cfcc2575aa969d5bf049f92ce0a6dce04593e Mon Sep 17 00:00:00 2001 From: Greg Davill Date: Sun, 30 Aug 2020 10:52:16 +0930 Subject: [PATCH] soc/cores/cpu/serv: fix crt0 .data initialize --- litex/soc/cores/cpu/serv/crt0.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/cores/cpu/serv/crt0.S b/litex/soc/cores/cpu/serv/crt0.S index f01e5176f..13bfc48e9 100644 --- a/litex/soc/cores/cpu/serv/crt0.S +++ b/litex/soc/cores/cpu/serv/crt0.S @@ -14,8 +14,8 @@ reset_vector: la t1, _edata la t2, _fdata_rom 1: beq t0, t1, 2f - lw t3, 0(t0) - sw t3, 0(t2) + lw t3, 0(t2) + sw t3, 0(t0) addi t0, t0, 4 addi t2, t2, 4 j 1b