From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmmqE-0003dO-Bm for qemu-devel@nongnu.org; Fri, 07 Nov 2014 11:56:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xmmq7-0006ec-Du for qemu-devel@nongnu.org; Fri, 07 Nov 2014 11:56:54 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:12415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xmmq7-0006eQ-7u for qemu-devel@nongnu.org; Fri, 07 Nov 2014 11:56:47 -0500 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 1496945B4DAFF for ; Fri, 7 Nov 2014 16:56:43 +0000 (GMT) From: Leon Alrae Date: Fri, 7 Nov 2014 16:56:07 +0000 Message-ID: <1415379369-16877-6-git-send-email-leon.alrae@imgtec.com> In-Reply-To: <1415379369-16877-1-git-send-email-leon.alrae@imgtec.com> References: <1415379369-16877-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PULL 5/7] target-mips: fix for missing delay slot in BC1EQZ and BC1NEZ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org New R6 COP1 conditional branches currently don't have delay slot. Fixing this by setting MIPS_HFLAG_BDS32 flag which is required for branches having 4-byte delay slot. Signed-off-by: Leon Alrae Reviewed-by: Yongbok Kim --- target-mips/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-mips/translate.c b/target-mips/translate.c index d6722e1..194d4fb 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -8104,6 +8104,7 @@ static void gen_compute_branch1_r6(DisasContext *ctx, uint32_t op, MIPS_DEBUG("%s: cond %02x target " TARGET_FMT_lx, opn, ctx->hflags, btarget); ctx->btarget = btarget; + ctx->hflags |= MIPS_HFLAG_BDS32; out: tcg_temp_free_i64(t0); -- 2.1.0