From 43ea76e58f5ad572858b95a7bd7f423765a151a0 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 14 Oct 2022 22:17:35 +0300 Subject: [PATCH] sv_binutils_fptrans: fix opcodes mode --- src/openpower/sv/sv_binutils_fptrans.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/openpower/sv/sv_binutils_fptrans.py b/src/openpower/sv/sv_binutils_fptrans.py index 83547aa0..d0e83460 100644 --- a/src/openpower/sv/sv_binutils_fptrans.py +++ b/src/openpower/sv/sv_binutils_fptrans.py @@ -205,6 +205,10 @@ if __name__ == "__main__": print("Disassembly of section \\.text:") print("0+ <\.text>:") - for subgenerator in map(generator, entries): - for line in subgenerator: + if mode in {Mode.ASM, Mode.DIS}: + for subgenerator in map(generator, entries): + for line in subgenerator: + print(line) + else: + for line in map(generator, entries): print(line) -- 2.30.2