diff --git a/litex/soc/cores/cpu/microwatt/crt0.S b/litex/soc/cores/cpu/microwatt/crt0.S index 0fc8868ef..5fc295f1b 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; \