Lists all the attributes associated with each instruction Signed-off-by: Taylor Simpson <tsimp...@quicinc.com> --- target/hexagon/do_qemu.py | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/target/hexagon/do_qemu.py b/target/hexagon/do_qemu.py index 5439964..f297931 100755 --- a/target/hexagon/do_qemu.py +++ b/target/hexagon/do_qemu.py @@ -797,3 +797,16 @@ realf.write(f.getvalue()) realf.close() f.close() +## +## Generate the op_attribs_generated.h file +## Lists all the attributes associated with each instruction +## +f = StringIO() +for tag in tags: + f.write('OP_ATTRIB(%s,ATTRIBS(%s))\n' % \ + (tag,string.join(sorted(attribdict[tag]),","))) +realf = open('op_attribs_generated.h', 'wt') +realf.write(f.getvalue()) +realf.close() +f.close() + -- 2.7.4