intel: genxml: prevent missing ; with address fields dwords
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 12 Mar 2017 16:53:29 +0000 (16:53 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 13 Mar 2017 17:23:49 +0000 (17:23 +0000)
commitbf47e5ba532d1bfd8780fa784e5a279ca5a96237
treed2cef2ec39cb74a520fcd9e5df4fca72d68facd7
parent9df3f28a8bad8892edb114c49b5ed18e555488f9
intel: genxml: prevent missing ; with address fields dwords

Before this change, the generator could print this kind of things :

   const uint32_t v0 =
      __gen_uint(values->ValidBit, 0, 0) |
      __gen_uint(values->FaultType, 1, 2) |
      __gen_uint(values->SRCIDofFault, 3, 10) |
      __gen_uint(values->GTTSEL, 11, 1) |
   dw[0] = __gen_combine_address(data, &dw[0], values->VirtualAddressofFault, v0);

This change fix the trailing '|'.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/genxml/gen_pack_header.py