sv_binutils_fptrans: fix opcodes mode
authorDmitry Selyutin <ghostmansd@gmail.com>
Fri, 14 Oct 2022 19:17:35 +0000 (22:17 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:15 +0000 (19:51 +0100)
src/openpower/sv/sv_binutils_fptrans.py

index 83547aa0659671880c0603187fb7310d92b1f793..d0e83460411b73e3abe2b9f05c84bb08cd0d06b0 100644 (file)
@@ -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)