diff mbox series

[RFC,v2,24/67] Hexagon generator phase 2 - opcodes_def_generated.h

Message ID 1582908244-304-25-git-send-email-tsimpson@quicinc.com
State New
Headers show
Series Hexagon patch series | expand

Commit Message

Taylor Simpson Feb. 28, 2020, 4:43 p.m. UTC
Gives a list of all the opcodes

Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
---
 target/hexagon/do_qemu.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff mbox series

Patch

diff --git a/target/hexagon/do_qemu.py b/target/hexagon/do_qemu.py
index 3f52ef3..107e1e8 100755
--- a/target/hexagon/do_qemu.py
+++ b/target/hexagon/do_qemu.py
@@ -781,3 +781,15 @@  realf.write(f.getvalue())
 realf.close()
 f.close()
 
+##
+## Generate the opcodes_def_generated.h file
+##     Gives a list of all the opcodes
+##
+f = StringIO()
+for tag in tags:
+    f.write ( "OPCODE(%s),\n" % (tag) )
+realf = open('opcodes_def_generated.h', 'wt')
+realf.write(f.getvalue())
+realf.close()
+f.close()
+