Skip to contentSkip to conversation

target-tilegx: Let x1 pipe process bpt instruction only

PATCH New [email protected] 1 participant 1 message Sep 25, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-tilegx: Let x1 pipe process bpt instruction only

From: Chen Gang <[email protected]>

According to the related document, bpt can be only in x1 pipe.

---
 target-tilegx/translate.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
target-tilegx/translate.c +7 -1
index a9fc4ce..6622aeb 100644
@@ -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):
Signature · 1 line
1.9.3