From 84617b585befbd2d1582bfa108e2e4bf5a68d929 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 22 Jun 2020 11:36:19 +0200 Subject: [PATCH] cores/cpu/microwatt: temporary revert crt0.S/setup stack. lxsim --cpu-type=microwatt --cpu-variant=standard+ghdl no longer working otherwise. --- litex/soc/cores/cpu/microwatt/crt0.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; \