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