Patchwork [RFC,09/11] linux-user: Setup/restore sc_acx for mips and mipsn32

login
register
mail settings
Submitter Andreas Färber
Date Dec. 29, 2011, 3:55 p.m.
Message ID <1325174149-8077-10-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/133573/
State New
Headers show

Comments

Andreas Färber - Dec. 29, 2011, 3:55 p.m.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Cc: Richard Henderson <rth@twiddle.net>
---
 linux-user/signal.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/linux-user/signal.c b/linux-user/signal.c
index a713cb2..bd13f9b 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -2487,6 +2487,9 @@  setup_sigcontext(CPUState *regs, struct target_sigcontext *sc)
     save_gp_reg(31);
 #undef save_gp_reg
 
+#if defined(TARGET_ABI_MIPSO32) || defined(TARGET_ABI_MIPSN32)
+    err |= __put_user(regs->active_tc.ACX[0], &sc->sc_acx);
+#endif
     err |= __put_user(regs->active_tc.HI[0], &sc->sc_mdhi);
     err |= __put_user(regs->active_tc.LO[0], &sc->sc_mdlo);
 
@@ -2548,6 +2551,9 @@  restore_sigcontext(CPUState *regs, struct target_sigcontext *sc)
 
     err |= __get_user(regs->CP0_EPC, &sc->sc_pc);
 
+#if defined(TARGET_ABI_MIPSO32) || defined(TARGET_ABI_MIPSN32)
+    err |= __get_user(regs->active_tc.ACX[0], &sc->sc_acx);
+#endif
     err |= __get_user(regs->active_tc.HI[0], &sc->sc_mdhi);
     err |= __get_user(regs->active_tc.LO[0], &sc->sc_mdlo);