intel/gen_decoder: Add array field.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 12 Jul 2019 23:13:56 +0000 (16:13 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Tue, 23 Jul 2019 17:45:19 +0000 (17:45 +0000)
commit618d0542830bf478f23da8216bd0df62e9f5ce18
tree9dcc9e02483bf2b423346150354cd07998148c62
parent21bdd51942433b757720865f69c847fa42cee449
intel/gen_decoder: Add array field.

We currently use the group->next pointer to iterate through the <group>
tags. This change them to be a type of field, so we can descend into
them while iterating, and then go back to the original position. Will be
useful when we want to decode <group>'s inside <group>'s, and when there
are more <field>'s after a <group> tag.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c
src/intel/common/gen_decoder.h