From 6905122999b1a2f96a092b3f2cdb6bb645e24027 Mon Sep 17 00:00:00 2001 From: Fan Yugang Date: Wed, 3 Mar 2021 08:54:12 +0800 Subject: [PATCH] intel/tools: Show unknown instructions in decoded state. Signed-off-by: Fan Yugang Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/common/gen_batch_decoder.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c index 7719b7b..6efadbf 100644 --- a/src/intel/common/gen_batch_decoder.c +++ b/src/intel/common/gen_batch_decoder.c @@ -1112,6 +1112,13 @@ gen_print_batch(struct gen_batch_decode_ctx *ctx, fprintf(ctx->fp, "%s0x%08"PRIx64": unknown instruction %08x%s\n", (ctx->flags & GEN_BATCH_DECODE_IN_COLOR) ? RED_COLOR : "", offset, p[0], reset_color); + + for (int i=1; i < length; i++) { + fprintf(ctx->fp, "%s0x%08"PRIx64": -- %08x%s\n", + (ctx->flags & GEN_BATCH_DECODE_IN_COLOR) ? RED_COLOR : "", + offset + i * 4, p[i], reset_color); + } + continue; } -- 2.7.4