Merge branch 'master' of ssh://git.libre-riscv.org:922/soc
[soc.git] / src / soc / simulator / program.py
index b3c1e87fc2fa2bc62ffa645dbc0710a021160fba..59590a0965c46819847bc072bb4f4417f3e1c1ad 100644 (file)
@@ -1,3 +1,9 @@
+"""POWER Program
+
+takes powerpc assembly instructions and turns them into LE/BE binary
+data.  calls powerpc64-linux-gnu-as, ld and objcopy to do so.
+"""
+
 import tempfile
 import subprocess
 import struct
@@ -45,6 +51,7 @@ class Program:
     def _assemble(self):
         with tempfile.NamedTemporaryFile(suffix=".o") as outfile:
             args = ["powerpc64-linux-gnu-as",
+                    '-mpower9',
                     obj_fmt,
                     "-o",
                     outfile.name]