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: Stefan Hajnoczi <stefanha@redhat.com>
  • Loading branch information
meadori authored and stefanhaRH committed Nov 1, 2012
1 parent 2ddef11 commit e88a676
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 e88a676

Please sign in to comment.