Skip to content

Commit

Permalink
m68k: Return semihosting errno values correctly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
meadori authored and blueswirl committed Nov 3, 2012
1 parent 49cf572 commit aed91c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-m68k/m68k-semi.c
Expand Up @@ -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) \
Expand Down

0 comments on commit aed91c1

Please sign in to comment.