strace/linux/or1k/set_error.c
Jacob Goense 5a2a54591d or1k: fix build
This fixes a typo in the arch_set_success for the or1k architecture.

* linux/or1k/set_error.c (arch_setsuccess): Rename to arch_set_success.

Fixes: 41d647c ("Implement success injection")
Closes: https://github.com/strace/strace/pull/6
2017-02-06 17:20:00 +00:00

14 lines
223 B
C

static int
arch_set_error(struct tcb *tcp)
{
or1k_regs.gpr[11] = -tcp->u_error;
return set_regs(tcp->pid);
}
static int
arch_set_success(struct tcb *tcp)
{
or1k_regs.gpr[11] = tcp->u_rval;
return set_regs(tcp->pid);
}