summaryrefslogtreecommitdiff
path: root/src/linux/or1k/get_scno.c
blob: f997abd4e38f02c88adb2169cca6ff27898ec621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright (c) 2015-2018 The strace developers.
 * All rights reserved.
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

/* Return codes: 1 - ok, 0 - ignore, other - error. */
static int
arch_get_scno(struct tcb *tcp)
{
	tcp->scno = or1k_regs.gpr[11];
	return 1;
}