1static void
2get_error(struct tcb *tcp, const bool check_errno)
3{
4	if (check_errno && is_negated_errno(sh64_r9)) {
5		tcp->u_rval = -1;
6		tcp->u_error = -sh64_r9;
7	} else {
8		tcp->u_rval = sh64_r9;
9	}
10}
11