diff options
author | 2012-10-29 12:05:09 +0000 | |
---|---|---|
committer | 2012-11-21 15:29:36 -0600 | |
commit | 0e8f3d119fe35bc7d56d6d0a29f4f65dfbd8d75c (patch) | |
tree | 39a55d43c0fef0951dd9919ad3c89fec53ac081d | |
parent | tools: initialize main loop before block layer (diff) | |
download | qemu-kvm-0e8f3d119fe35bc7d56d6d0a29f4f65dfbd8d75c.tar.gz qemu-kvm-0e8f3d119fe35bc7d56d6d0a29f4f65dfbd8d75c.tar.bz2 qemu-kvm-0e8f3d119fe35bc7d56d6d0a29f4f65dfbd8d75c.zip |
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>
(cherry picked from commit aed91c1bff5e568c7b0fbd0e1e7e2f9e62409e73)
-rw-r--r-- | m68k-semi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m68k-semi.c b/m68k-semi.c index 3bb30cd1f..fed44ea49 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) \ |