1 /*
2 * Copyright (c) 2015-2021 The strace developers.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 static void
9 arch_get_error(struct tcb *tcp, const bool check_errno)
10 {
11 if (mips_REG_A3) {
12 tcp->u_rval = -1;
13 tcp->u_error = mips_REG_V0;
14 } else {
15 tcp->u_rval = mips_REG_V0;
16 }
17 }