Received: from eggs.gnu.org ([2001:4830:134:3::10]:37549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4ubw-0003IL-Oy for qemu-devel@nongnu.org; Wed, 09 Jul 2014 12:20:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4ubo-0005Ey-Ch for qemu-devel@nongnu.org; Wed, 09 Jul 2014 12:20:48 -0400 Received: from mail-pd0-x22a.google.com ([2607:f8b0:400e:c02::22a]:41690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4ubo-0005Ee-4L for qemu-devel@nongnu.org; Wed, 09 Jul 2014 12:20:40 -0400 Received: by mail-pd0-f170.google.com with SMTP id z10so9247143pdj.15 for ; Wed, 09 Jul 2014 09:20:39 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Wed, 9 Jul 2014 09:20:17 -0700 Message-Id: <1404922834-28169-2-git-send-email-rth@twiddle.net> In-Reply-To: <1404922834-28169-1-git-send-email-rth@twiddle.net> References: <1404922834-28169-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL 01/18] 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