qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 13/14] target/hexagon: import additional tests


From: Taylor Simpson
Subject: Re: [PATCH v5 13/14] target/hexagon: import additional tests
Date: Mon, 28 Jun 2021 17:39:08 -0500




On Fri, Jun 25, 2021 at 6:56 PM Taylor Simpson <taylor.qemu@gmail.com> wrote:


On Sat, Jun 19, 2021 at 4:49 AM Alessandro Di Federico via <qemu-devel@nongnu.org> wrote:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]