summary refs log tree commit diff stats
path: root/target/hexagon/gen_opcodes_def.py
diff options
context:
space:
mode:
Diffstat (limited to 'target/hexagon/gen_opcodes_def.py')
-rwxr-xr-xtarget/hexagon/gen_opcodes_def.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/hexagon/gen_opcodes_def.py b/target/hexagon/gen_opcodes_def.py
index 5eebc16898..cddd868fe3 100755
--- a/target/hexagon/gen_opcodes_def.py
+++ b/target/hexagon/gen_opcodes_def.py
@@ -22,15 +22,17 @@ import re
 import string
 import hex_common
 
+
 def main():
     hex_common.read_semantics_file(sys.argv[1])
 
     ##
     ##     Generate a list of all the opcodes
     ##
-    with open(sys.argv[3], 'w') as f:
+    with open(sys.argv[3], "w") as f:
         for tag in hex_common.tags:
             f.write(f"OPCODE({tag}),\n")
 
+
 if __name__ == "__main__":
     main()