diff options
author | Meador Inge <meadori@codesourcery.com> | 2012-10-29 12:05:09 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-11-03 09:35:00 +0000 |
commit | aed91c1bff5e568c7b0fbd0e1e7e2f9e62409e73 (patch) | |
tree | 5e842bf855aa8a357e8eb271d6a5455c7276921d | |
parent | 49cf57281b74ccb64587ccc0626fc55a01227a15 (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: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | target-m68k/m68k-semi.c | 2 |
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) \ |