Skip to content
  • Eric Engestrom's avatar
    intel: fix gen_sort_tags.py · 981d07c7
    Eric Engestrom authored
    The script was failing for me (python 3.8), not sure if this is a recent
    python version break or not as I don't know how often people have been
    running this script:
    
        Processing ./gen9.xml... Traceback (most recent call last):
          File "./gen_sort_tags.py", line 177, in <module>
            main()
          File "./gen_sort_tags.py", line 170, in main
            genxml[:] = enums + sorted_structs.values() + instructions + registers
        TypeError: can only concatenate list (not "odict_values") to list
    
    Turning the odict into a list fixes it for me, and the resulting xml
    file are identical to before :)
    
    Fixes: 903e142f
    
     ("genxml: add a sorting script")
    Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric@engestrom.ch>
    Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <mesa!5352>
    981d07c7