intel/gen_decoder: Decode <group> inside <group>.
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 15 Jul 2019 23:04:44 +0000 (16:04 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Tue, 23 Jul 2019 17:45:19 +0000 (17:45 +0000)
commite25ebe2ec9a0b5b16f56c5689571c0a8928299ee
tree4aa34c02309a2e4b212b2330f4fb3c73484eafbd
parentf670c2e1ff1025ac497005f4b0a06a7308636882
intel/gen_decoder: Decode <group> inside <group>.

Now we can decode a <group> tag inside another <group> tag, and properly
print its indices and content.

v2: Use push/pop stack to fields, groups and iters (Lionel).
v3: Add assert(iter->level < DECODE_MAX_ARRAY_DEPTH) (Lionel).

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