From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2ndB-0006oN-H4 for qemu-devel@nongnu.org; Thu, 03 Jul 2014 16:29:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2nd5-0004yS-7d for qemu-devel@nongnu.org; Thu, 03 Jul 2014 16:29:21 -0400 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:40172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2nd5-0004yM-39 for qemu-devel@nongnu.org; Thu, 03 Jul 2014 16:29:15 -0400 Received: by mail-qg0-f52.google.com with SMTP id f51so711120qge.11 for ; Thu, 03 Jul 2014 13:29:14 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 3 Jul 2014 13:28:59 -0700 Message-Id: <1404419347-18265-2-git-send-email-rth@twiddle.net> In-Reply-To: <1404419347-18265-1-git-send-email-rth@twiddle.net> References: <1404419347-18265-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH v2 1/9] target-alpha: Forget installed round mode after MT_FPCR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, viro@ZenIV.linux.org.uk When we use QUAL_RM_D, we copy fpcr_dyn_round to float_status. When we install a new FPCR value, we update fpcr_dyn_round. Reset the status of the cache so that we re-copy for the next fp insn that requires dynamic rounding. Signed-off-by: Richard Henderson --- target-alpha/translate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index cc81e77..0bd903c 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2196,6 +2196,11 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn) /* MT_FPCR */ va = load_fpr(ctx, ra); gen_helper_store_fpcr(cpu_env, va); + if (ctx->tb_rm == QUAL_RM_D) { + /* Re-do the copy of the rounding mode to fp_status + the next time we use dynamic rounding. */ + ctx->tb_rm = -1; + } break; case 0x025: /* MF_FPCR */ -- 1.9.3