From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfceH-0002tn-9o for qemu-devel@nongnu.org; Fri, 25 Sep 2015 19:43:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfceE-0000vk-4h for qemu-devel@nongnu.org; Fri, 25 Sep 2015 19:43:29 -0400 Received: from smtpbg299.qq.com ([184.105.67.99]:37659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfceD-0000sL-SZ for qemu-devel@nongnu.org; Fri, 25 Sep 2015 19:43:26 -0400 Sender: gang.chen.5i5j@qq.com From: gang.chen.5i5j@gmail.com Date: Sat, 26 Sep 2015 07:42:54 +0800 Message-Id: <1443224574-2718-1-git-send-email-gang.chen.5i5j@gmail.com> Subject: [Qemu-devel] [PATCH] target-tilegx: Let x1 pipe process bpt instruction only List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org, rth@twiddle.net Cc: cmetcalf@ezchip.com, qemu-devel@nongnu.org, xili_gchen_5257@hotmail.com, Chen Gang From: Chen Gang According to the related document, bpt can be only in x1 pipe. Signed-off-by: Chen Gang --- target-tilegx/translate.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index a9fc4ce..6622aeb 100644 --- a/target-tilegx/translate.c +++ b/target-tilegx/translate.c @@ -407,8 +407,14 @@ static TileExcp gen_rr_opcode(DisasContext *dc, unsigned opext, mnemonic = "flushwb"; goto done0; case OE_RR_X1(ILL): + if (dest == 0x1c && srca == 0x25) { + mnemonic = "bpt"; + goto done2; + } + /* Fall through */ case OE_RR_Y1(ILL): - mnemonic = (dest == 0x1c && srca == 0x25 ? "bpt" : "ill"); + mnemonic = "ill"; + done2: qemu_log_mask(CPU_LOG_TB_IN_ASM, "%s", mnemonic); return TILEGX_EXCP_OPCODE_UNKNOWN; case OE_RR_X1(MF): -- 1.9.3