From patchwork Tue Jul 12 19:02:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 9226027 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 957A9604DB for ; Tue, 12 Jul 2016 19:23:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82B0C24B5E for ; Tue, 12 Jul 2016 19:23:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7756027FA1; Tue, 12 Jul 2016 19:23:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3EA4424B5E for ; Tue, 12 Jul 2016 19:23:15 +0000 (UTC) Received: from localhost ([::1]:42877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN3H0-0002LQ-8h for patchwork-qemu-devel@patchwork.kernel.org; Tue, 12 Jul 2016 15:23:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN2xg-0005V0-B8 for qemu-devel@nongnu.org; Tue, 12 Jul 2016 15:03:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bN2xe-0002lj-F5 for qemu-devel@nongnu.org; Tue, 12 Jul 2016 15:03:15 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:33612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN2xe-0002lZ-BH for qemu-devel@nongnu.org; Tue, 12 Jul 2016 15:03:14 -0400 Received: by mail-qk0-x243.google.com with SMTP id n132so1528917qka.0 for ; Tue, 12 Jul 2016 12:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=M9doN8miqsvk6YcMew3cqQgCEXTjk3rhxorTZtqdixI=; b=sV3oJB1PoybVUYJOaRXlxapfERkwWY/KXu35uTuNCkkNlnG3uo1tdb1b9ZBAZPW5go iiN4LKc+Iv/Rx0C6nQXDBV/6VXzXPDVzGdSza8IFtxfNgpClTt5MJrxpl2sRmwyRE1nq 6Hdt5RWdyWghZM0Hzab3EmAg283vOoufVvVK1i4jt0h36hd3+HOByT+NeupG+SULUk/Y om2A2WRYUkgxnLn32IiPu75AGML1h/9ue+PfrJofgni1I0P0GvXHxxOf3JsaBEmj7KWc ZS6LhrQzldLbkGZPX6loTXaiAc5vVVZVIXUhVIbARm4VU7MQVFwHbUQGjNLP5KEMQOB0 1zYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=M9doN8miqsvk6YcMew3cqQgCEXTjk3rhxorTZtqdixI=; b=iyK7tYZokxeiVe0AxxyFvlLNPaFm9i6K9RXVes7ESIBohvBoTzzt32fzj1HEKcQkX7 ZJQSzS5mmiz+rCh11I+dqevnkNcQVsXVIe6k6KQikHR3jrxUM9spYXim8q7s2BaCxNJl cCDo2jp9Ku7bmPYDM/7xA2KyRh2QvOCc1g4p3b8BnEKG7X5WAyKBRGTfoCJapT2YY1te 1jjC8DYYZAApOvR0lsZGJy6LWfS2Y+gC3k6GEsYVmODdN9LooacBwfdwdTYhD/0p1YA8 tBXL7ITll5GgqCzPZweRjDnlh9er7C/Mc6gQ/+jR1Kky6h2QYlotGM6M4NBWgPw9Il8F Q+LQ== X-Gm-Message-State: ALyK8tKVyx5gX2yjMQwWkw97HucyeXxIt1OJZdEmYsacx4vhgjxH6QpwlzvuAbmUnxtDFg== X-Received: by 10.55.162.138 with SMTP id l132mr4791970qke.85.1468350194012; Tue, 12 Jul 2016 12:03:14 -0700 (PDT) Received: from bigtime.com (71-37-54-227.tukw.qwest.net. [71.37.54.227]) by smtp.gmail.com with ESMTPSA id u87sm1209716qkl.30.2016.07.12.12.03.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 12:03:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 12 Jul 2016 12:02:16 -0700 Message-Id: <1468350138-9736-23-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1468350138-9736-1-git-send-email-rth@twiddle.net> References: <1468350138-9736-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [PULL 22/24] target-sparc: Use cpu_fsr in stfsr X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, mark.cave-ayland@ilande.co.uk Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Tested-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target-sparc/translate.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index ed0853a..dea1b5f 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -5403,17 +5403,14 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn) break; case 0x25: /* stfsr, V9 stxfsr */ { - TCGv t = get_temp_tl(dc); - - tcg_gen_ld_tl(t, cpu_env, offsetof(CPUSPARCState, fsr)); #ifdef TARGET_SPARC64 gen_address_mask(dc, cpu_addr); if (rd == 1) { - tcg_gen_qemu_st64(t, cpu_addr, dc->mem_idx); + tcg_gen_qemu_st64(cpu_fsr, cpu_addr, dc->mem_idx); break; } #endif - tcg_gen_qemu_st32(t, cpu_addr, dc->mem_idx); + tcg_gen_qemu_st32(cpu_fsr, cpu_addr, dc->mem_idx); } break; case 0x26: