broadcom/genxml: Use the same "gen" attr for HW version as Intel does.
authorEric Anholt <eric@anholt.net>
Thu, 13 Jul 2017 18:02:37 +0000 (11:02 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 13 Jul 2017 18:28:28 +0000 (11:28 -0700)
This will let us reuse their tools more easily.

src/broadcom/cle/gen_pack_header.py
src/broadcom/cle/v3d_packet_v21.xml

index 528ff8fa4399a7203cc4f44bcbdca4555ac9044f..1ebeec7a794bd3de83be503e153ae11e6e5d0298 100644 (file)
@@ -383,8 +383,8 @@ class Parser(object):
 
     def start_element(self, name, attrs):
         if name == "vcxml":
-            self.platform = "V3D {}".format(attrs["ver"])
-            self.ver = attrs["ver"].replace('.', '')
+            self.platform = "V3D {}".format(attrs["gen"])
+            self.ver = attrs["gen"].replace('.', '')
             print(pack_header % {'license': license, 'platform': self.platform, 'guard': self.gen_guard()})
         elif name in ("packet", "struct", "register"):
             default_field = None
index 7a957e640725448e6882a2de3e90fb07cfe8c615..5d285334bcc2d4d7480aa99e0ed6769868ebc72e 100644 (file)
@@ -1,4 +1,4 @@
-<vcxml ver="2.1">
+<vcxml gen="2.1">
   <packet name="Halt" code="0"/>
   <packet name="NOP" code="1"/>
   <packet name="Flush" code="4" cl="B"/>