From: Florent Kermarrec Date: Mon, 22 Jun 2020 09:36:19 +0000 (+0200) Subject: cores/cpu/microwatt: temporary revert crt0.S/setup stack. X-Git-Tag: 24jan2021_ls180~168 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84617b585befbd2d1582bfa108e2e4bf5a68d929;p=litex.git cores/cpu/microwatt: temporary revert crt0.S/setup stack. lxsim --cpu-type=microwatt --cpu-variant=standard+ghdl no longer working otherwise. --- diff --git a/litex/soc/cores/cpu/microwatt/crt0.S b/litex/soc/cores/cpu/microwatt/crt0.S index 0fc8868e..5fc295f1 100644 --- a/litex/soc/cores/cpu/microwatt/crt0.S +++ b/litex/soc/cores/cpu/microwatt/crt0.S @@ -76,9 +76,11 @@ _start: bdnz 0b 1: /* setup stack */ - ld %r1,_fstack@got(%r2) - bl main - b . + LOAD_IMM64(%r1, _fstack - 0x100) + LOAD_IMM64(%r12, main) + mtctr %r12, + bctrl + b . #define EXCEPTION(nr) \ .= nr; \