aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/common/gen_decoder.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-09-23 21:30:56 +0100
committerLionel Landwerlin <[email protected]>2017-11-01 13:19:20 +0000
commitde213b4af818e203680e2cf127bee0b0bf2482d6 (patch)
treee556fc09192b456c2a434daac572c4d472a03e65 /src/intel/common/gen_decoder.c
parent68e1853ea3a6feabf14cbe42e8e003647fdc82f3 (diff)
intel: decoder: expose helper to test header fields
These fields are of little importance as they're used to recognize instructions. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/common/gen_decoder.c')
-rw-r--r--src/intel/common/gen_decoder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c
index d2190cb8b1f..de4972a9045 100644
--- a/src/intel/common/gen_decoder.c
+++ b/src/intel/common/gen_decoder.c
@@ -971,8 +971,8 @@ print_dword_header(FILE *outfile,
offset + 4 * dword, iter->p[dword], dword);
}
-static bool
-is_header_field(struct gen_group *group, struct gen_field *field)
+bool
+gen_group_header_is_header(struct gen_group *group, struct gen_field *field)
{
uint32_t bits;
@@ -999,7 +999,7 @@ gen_print_group(FILE *outfile, struct gen_group *group,
print_dword_header(outfile, &iter, offset, i);
last_dword = iter.dword;
}
- if (!is_header_field(group, iter.field)) {
+ if (!gen_group_header_is_header(group, iter.field)) {
fprintf(outfile, " %s: %s\n", iter.name, iter.value);
if (iter.struct_desc) {
uint64_t struct_offset = offset + 4 * iter.dword;