Received: from eggs.gnu.org ([2001:4830:134:3::10]:32924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buaAF-0003hy-8l for qemu-devel@nongnu.org; Thu, 13 Oct 2016 03:10:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buaAA-0001qJ-V1 for qemu-devel@nongnu.org; Thu, 13 Oct 2016 03:10:50 -0400 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:33536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buaAA-0001q3-Ni for qemu-devel@nongnu.org; Thu, 13 Oct 2016 03:10:46 -0400 Received: by mail-pf0-x242.google.com with SMTP id i85so1020059pfa.0 for ; Thu, 13 Oct 2016 00:10:46 -0700 (PDT) From: Heiher Date: Thu, 13 Oct 2016 15:10:32 +0800 Message-Id: <20161013071032.30694-1-r@hev.cc> Subject: [Qemu-devel] [PATCH 2/2] target-mips: Fix Loongson multimedia instructions. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net, yongbok.kim@imgtec.com, Heiher , Fuxin Zhang From: Heiher Needed to emit FPU exception on Loongson multimedia instructions executing if Status:CU1 is clear. or FPR changes may be missed on Linux. Signed-off-by: Heiher Signed-off-by: Fuxin Zhang --- target-mips/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-mips/translate.c b/target-mips/translate.c index 139f249..b87a09b 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -3871,6 +3871,7 @@ static void gen_loongson_multimedia(DisasContext *ctx, int rd, int rs, int rt) break; } + check_cp1_enabled(ctx); gen_load_fpr64(ctx, t0, rs); gen_load_fpr64(ctx, t1, rt); -- 2.10.0