From patchwork Thu Dec 29 15:55:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 133573 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 16868B6FBB for ; Fri, 30 Dec 2011 03:33:36 +1100 (EST) Received: from localhost ([::1]:39912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgINe-0003b7-8T for incoming@patchwork.ozlabs.org; Thu, 29 Dec 2011 10:58:58 -0500 Received: from eggs.gnu.org ([140.186.70.92]:45584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgIMc-0000V4-7e for qemu-devel@nongnu.org; Thu, 29 Dec 2011 10:57:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgIMW-0003eF-Tv for qemu-devel@nongnu.org; Thu, 29 Dec 2011 10:57:54 -0500 Received: from cantor2.suse.de ([195.135.220.15]:59566 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgIMW-0003dX-Or for qemu-devel@nongnu.org; Thu, 29 Dec 2011 10:57:48 -0500 Received: from relay2.suse.de (nat.nue.novell.com [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 0B7428E857; Thu, 29 Dec 2011 16:57:48 +0100 (CET) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Thu, 29 Dec 2011 16:55:47 +0100 Message-Id: <1325174149-8077-10-git-send-email-afaerber@suse.de> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1325174149-8077-1-git-send-email-afaerber@suse.de> References: <1325174149-8077-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.15 Cc: Riku Voipio , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Richard Henderson Subject: [Qemu-devel] [RFC 09/11] linux-user: Setup/restore sc_acx for mips and mipsn32 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Andreas Färber Cc: Richard Henderson --- linux-user/signal.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) 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);