From: Dmitry Selyutin Date: Fri, 14 Oct 2022 19:17:35 +0000 (+0300) Subject: sv_binutils_fptrans: fix opcodes mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43ea76e58f5ad572858b95a7bd7f423765a151a0;p=openpower-isa.git sv_binutils_fptrans: fix opcodes mode --- 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)