Received: from eggs.gnu.org ([2001:4830:134:3::10]:42059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeLIV-0000iY-7e for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:55:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeLIP-0000gI-Fd for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:55:11 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:7370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeLIP-0000fe-Au for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:55:05 -0400 From: Leon Alrae Date: Wed, 15 Oct 2014 10:54:14 +0100 Message-ID: <1413366860-7833-23-git-send-email-leon.alrae@imgtec.com> In-Reply-To: <1413366860-7833-1-git-send-email-leon.alrae@imgtec.com> References: <1413366860-7833-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PULL 22/28] target-mips/translate.c: Update OPC_SYNCI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Dongxue Zhang From: Dongxue Zhang Update OPC_SYNCI with BS_STOP, in order to handle the instructions which saved in the same TB of the store instruction. Signed-off-by: Dongxue Zhang Reviewed-by: Yongbok Kim [leon.alrae@imgtec.com: update microMIPS SYNCI as well] Signed-off-by: Leon Alrae --- target-mips/translate.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index 57c2d41..7b9e8cd 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -13190,6 +13190,9 @@ static void decode_micromips32_opc (CPUMIPSState *env, DisasContext *ctx, gen_logic_imm(ctx, OPC_LUI, rs, -1, imm); break; case SYNCI: + /* Break the TB to be able to sync copied instructions + immediately */ + ctx->bstate = BS_STOP; break; case BC2F: case BC2T: @@ -16928,7 +16931,9 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx) break; case OPC_SYNCI: check_insn(ctx, ISA_MIPS32R2); - /* Treat as NOP. */ + /* Break the TB to be able to sync copied instructions + immediately */ + ctx->bstate = BS_STOP; break; case OPC_BPOSGE32: /* MIPS DSP branch */ #if defined(TARGET_MIPS64) -- 2.1.0