aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeador Inge <meadori@codesourcery.com>2012-02-24 16:18:41 -0600
committerStefan Hajnoczi <stefanha@redhat.com>2012-11-01 19:42:35 +0100
commite88a676e916bd29c1224ea46e037f354776fa3c8 (patch)
tree2cbedcc4aab659536da0ff86a431457b25e040ee
parent2ddef11bede823b068b59a66b4c5c62377e69b2f (diff)
m68k: Return semihosting errno values correctly
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 <meadori@codesourcery.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--target-m68k/m68k-semi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-m68k/m68k-semi.c b/target-m68k/m68k-semi.c
index 3bb30cd1f7..fed44ea490 100644
--- a/target-m68k/m68k-semi.c
+++ b/target-m68k/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) \