intel/decoder: Drop gen_field_decode helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Dec 2017 00:12:16 +0000 (16:12 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 Dec 2017 21:26:44 +0000 (13:26 -0800)
It's unused

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

index b3501aec912f54918de4a8779c99e9e738cb567e..9f4f50393945a93a13be2b9dde294d15b1b1c0b0 100644 (file)
@@ -1011,14 +1011,6 @@ gen_field_is_header(struct gen_field *field)
    return (field->parent->opcode_mask & bits) != 0;
 }
 
-void gen_field_decode(struct gen_field *field,
-                      const uint32_t *p, const uint32_t *end,
-                      union gen_field_value *value)
-{
-   uint32_t dword = field->start / 32;
-   value->u64 = iter_decode_field_raw(field, &p[dword], end);
-}
-
 void
 gen_print_group(FILE *outfile, struct gen_group *group,
                 uint64_t offset, const uint32_t *p, bool color)
index 8b00b6edc2f29bd93baecd624d9e324717116bda..bf7cb424fc6bb626845597cf978d301ac6b4536f 100644 (file)
@@ -62,9 +62,6 @@ struct gen_field *gen_group_find_field(struct gen_group *group, const char *name
 struct gen_enum *gen_spec_find_enum(struct gen_spec *spec, const char *name);
 
 bool gen_field_is_header(struct gen_field *field);
-void gen_field_decode(struct gen_field *field,
-                      const uint32_t *p, const uint32_t *end,
-                      union gen_field_value *value);
 
 struct gen_field_iterator {
    struct gen_group *group;