qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 39/60] m68k: Return semihosting errno values correct


From: Michael Tokarev
Subject: [Qemu-devel] [PATCH 39/60] m68k: Return semihosting errno values correctly
Date: Mon, 4 Feb 2013 14:40:49 +0400

From: Meador Inge <address@hidden>

Fixing a simple typo, s/errno/err/, that caused
the error status from GDB semihosted system calls
to be returned incorrectly.

Signed-off-by: Meador Inge <address@hidden>
Reviewed-by: Andreas Färber <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Blue Swirl <address@hidden>
(cherry picked from commit aed91c1bff5e568c7b0fbd0e1e7e2f9e62409e73)

Signed-off-by: Michael Tokarev <address@hidden>
---
 m68k-semi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m68k-semi.c b/m68k-semi.c
index 3bb30cd..fed44ea 100644
--- a/m68k-semi.c
+++ b/m68k-semi.c
@@ -150,7 +150,7 @@ static void m68k_semi_cb(CPUM68KState *env, target_ulong 
ret, target_ulong err)
     }
     /* FIXME - handle put_user() failure */
     put_user_u32(ret, args);
-    put_user_u32(errno, args + 4);
+    put_user_u32(err, args + 4);
 }
 
 #define ARG(n)                                 \
-- 
1.7.10.4




reply via email to

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