From 9134f22df2b216f587ef9fe85e6dd86ff226e0b7 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Mon, 20 Jan 2020 22:00:48 +0100 Subject: panfrost/midgard: Print the actual source register for store operations Store operation use r26/r27 but have a word->reg set to 0 or 1 (base is r26). Let's take this base offset into account in print_load_store_instr(). Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Tested-by: Marge Bot Part-of: --- src/panfrost/midgard/disassemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/midgard/disassemble.c b/src/panfrost/midgard/disassemble.c index eb0471bc90c..e92214417c4 100644 --- a/src/panfrost/midgard/disassemble.c +++ b/src/panfrost/midgard/disassemble.c @@ -1121,7 +1121,7 @@ print_load_store_instr(uint64_t data, midg_stats.attribute_count = -16; } - printf(" r%u", word->reg); + printf(" r%u", word->reg + (OP_IS_STORE(word->op) ? 26 : 0)); print_mask_4(word->mask, false); if (!OP_IS_STORE(word->op)) -- cgit v1.2.3