[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
- [RFC PATCH 00/66] Hexagon patch series, Taylor Simpson, 2020/02/10
- [RFC PATCH 01/66] Hexagon Maintainers, Taylor Simpson, 2020/02/10
- [RFC PATCH 02/66] Hexagon ELF Machine Definition, Taylor Simpson, 2020/02/10
- [RFC PATCH 04/66] Hexagon register names, Taylor Simpson, 2020/02/10
- [RFC PATCH 22/66] Hexagon generator phase 2 - qemu_wrap_generated.h, Taylor Simpson, 2020/02/10
- [RFC PATCH 23/66] Hexagon generator phase 2 - opcodes_def_generated.h,
Taylor Simpson <=
- [RFC PATCH 12/66] Hexagon register map, Taylor Simpson, 2020/02/10
- [RFC PATCH 05/66] Hexagon Disassembler, Taylor Simpson, 2020/02/10
- [RFC PATCH 10/66] Hexagon register fields, Taylor Simpson, 2020/02/10
- [RFC PATCH 20/66] Hexagon generator phase 1 - C preprocessor for semantics, Taylor Simpson, 2020/02/10
- [RFC PATCH 03/66] Hexagon CPU Scalar Core Definition, Taylor Simpson, 2020/02/10
- [RFC PATCH 18/66] Hexagon instruction class definitions, Taylor Simpson, 2020/02/10