qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC PATCH 23/66] Hexagon generator phase 2 - opcodes_def_generated.h


From: Taylor Simpson
Subject: [RFC PATCH 23/66] Hexagon generator phase 2 - opcodes_def_generated.h
Date: Mon, 10 Feb 2020 18:40:01 -0600

Gives a list of all the opcodes

Signed-off-by: Taylor Simpson <address@hidden>
---
 target/hexagon/do_qemu.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/target/hexagon/do_qemu.py b/target/hexagon/do_qemu.py
index 43acdd7..5439964 100755
--- a/target/hexagon/do_qemu.py
+++ b/target/hexagon/do_qemu.py
@@ -785,3 +785,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()
+
-- 
2.7.4


reply via email to

[Prev in Thread] Current Thread [Next in Thread]