Dmitry V. Levin | 0c8c5c9 | 2015-11-29 00:06:45 +0000 | [diff] [blame] | 1 | static void |
2 | get_error(struct tcb *tcp, const bool check_errno) | ||||
3 | { | ||||
Dmitry V. Levin | 552f2f6 | 2015-12-27 00:18:51 +0000 | [diff] [blame^] | 4 | if (sparc_regs.psr & PSR_C) { |
Dmitry V. Levin | 0c8c5c9 | 2015-11-29 00:06:45 +0000 | [diff] [blame] | 5 | tcp->u_rval = -1; |
6 | tcp->u_error = sparc_regs.u_regs[U_REG_O0]; | ||||
7 | } else { | ||||
8 | tcp->u_rval = sparc_regs.u_regs[U_REG_O0]; | ||||
9 | } | ||||
Dmitry V. Levin | d70d1c4 | 2015-03-22 22:13:55 +0000 | [diff] [blame] | 10 | } |