intel: decoder: extract instruction/structs length
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
This commit is contained in:
@@ -162,6 +162,13 @@ create_group(struct parser_context *ctx,
|
||||
group->spec = ctx->spec;
|
||||
group->variable = false;
|
||||
|
||||
for (int i = 0; atts[i]; i += 2) {
|
||||
char *p;
|
||||
if (strcmp(atts[i], "length") == 0) {
|
||||
group->dw_length = strtoul(atts[i + 1], &p, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (parent) {
|
||||
group->parent = parent;
|
||||
get_group_offset_count(atts,
|
||||
|
||||
@@ -87,6 +87,7 @@ struct gen_group {
|
||||
|
||||
struct gen_field *fields; /* linked list of fields */
|
||||
|
||||
uint32_t dw_length;
|
||||
uint32_t group_offset, group_count;
|
||||
uint32_t group_size;
|
||||
bool variable;
|
||||
|
||||
Reference in New Issue
Block a user