aboutsummaryrefslogtreecommitdiff
path: root/linux-user/host/ppc/host-signal.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/host/ppc/host-signal.h')
-rw-r--r--linux-user/host/ppc/host-signal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/host/ppc/host-signal.h b/linux-user/host/ppc/host-signal.h
index a491c413dc..1d8e658ff7 100644
--- a/linux-user/host/ppc/host-signal.h
+++ b/linux-user/host/ppc/host-signal.h
@@ -16,6 +16,11 @@ static inline uintptr_t host_signal_pc(ucontext_t *uc)
return uc->uc_mcontext.regs->nip;
}
+static inline void host_signal_set_pc(ucontext_t *uc, uintptr_t pc)
+{
+ uc->uc_mcontext.regs->nip = pc;
+}
+
static inline bool host_signal_write(siginfo_t *info, ucontext_t *uc)
{
return uc->uc_mcontext.regs->trap != 0x400