Gives a list of all the opcodes Signed-off-by: Taylor Simpson <tsimp...@quicinc.com> --- 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 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() + -- 2.7.4