From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC7m9-0003nG-7U for qemu-devel@nongnu.org; Tue, 29 Jul 2014 09:49:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XC7m0-0006Jo-6A for qemu-devel@nongnu.org; Tue, 29 Jul 2014 09:49:09 -0400 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:51128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC7lz-0006Jk-VG for qemu-devel@nongnu.org; Tue, 29 Jul 2014 09:49:00 -0400 Received: by mail-pd0-f175.google.com with SMTP id r10so11693952pdi.34 for ; Tue, 29 Jul 2014 06:48:58 -0700 (PDT) From: Dongxue Zhang Date: Tue, 29 Jul 2014 21:48:10 +0800 Message-Id: <1406641690-6764-2-git-send-email-elta.era@gmail.com> In-Reply-To: <1406641690-6764-1-git-send-email-elta.era@gmail.com> References: <1406641690-6764-1-git-send-email-elta.era@gmail.com> Content-Type: text/plain; charset="utf-8" Subject: [Qemu-devel] [PATCH 2/2] 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: peter.maydell@linaro.org, Dongxue Zhang , aurelien@aurel32.net 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 --- target-mips/translate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index c381366..dc8afcf 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -15334,7 +15334,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) -- 1.8.1.2