intel/genxml: recognize 0x, 0o and 0b when setting default value
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 2 May 2018 21:48:57 +0000 (14:48 -0700)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 4 May 2018 22:58:10 +0000 (23:58 +0100)
commit9d1ff2261ccec49994c8162c20969b693b29639a
tree3791b20456acfed71a53707c5a737bc2aef2f3ac
parent9a10a2fd5fc11ee08e8fa049f59fd129885cd332
intel/genxml: recognize 0x, 0o and 0b when setting default value

Remove the need of converting values that are documented in
hexadecimal. This patch would allow writing

    <field name="3D Command Sub Opcode" ... default="0x1B"/>

instead of

    <field name="3D Command Sub Opcode" ... default="27"/>

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/genxml/gen_pack_header.py