summaryrefslogtreecommitdiff
path: root/src/linux/or1k/get_scno.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/or1k/get_scno.c')
-rw-r--r--src/linux/or1k/get_scno.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/linux/or1k/get_scno.c b/src/linux/or1k/get_scno.c
new file mode 100644
index 000000000..f997abd4e
--- /dev/null
+++ b/src/linux/or1k/get_scno.c
@@ -0,0 +1,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;
+}