From: Niccolò Izzo <nizzo@rev.ng>
Signed-off-by: Alessandro Di Federico <ale@rev.ng>
Signed-off-by: Niccolò Izzo <nizzo@rev.ng>
---
+ .text
+ .globl _start
+
+_start:
+ {
+ call init
+ }
+ {
+ r0=#1
+ memw(sp+#0)=r0.new
+ }
You haven't set up the stack, so you shouldn't use sp. Even if the stack were set up, you should allocframe first.
My apologies - the stack *is* set up in linux-user mode. So, it is OK to reference sp after you do an allocframe.
You can disregard the other comments in the review about setting up the stack.
Thanks,
Taylor