microwatt: Implement boot helper
authorJoel Stanley <joel@jms.id.au>
Tue, 9 Jun 2020 09:10:21 +0000 (18:40 +0930)
committerJoel Stanley <joel@jms.id.au>
Wed, 10 Jun 2020 01:53:22 +0000 (11:23 +0930)
litex/soc/cores/cpu/microwatt/boot-helper.S

index 8dc226df0af9d45bf318c1e089cb9e67b0524771..bc2b0395b3d6628aa5e0baa8712d14f0c80572cd 100644 (file)
@@ -1,4 +1,7 @@
 .section    .text, "ax", @progbits
 .global     boot_helper
+// void boot_helper(unsigned long r1, unsigned long r2, unsigned long r3, unsigned long addr)
 boot_helper:
-       nop # FIXME
+       mtctr   %r6,
+       bctrl
+       ba      0