From 2ebef20ba1e47760e544e60709c2091b257bb165 Mon Sep 17 00:00:00 2001 From: wangra-google <62302956+wangra-google@users.noreply.github.com> Date: Fri, 20 Oct 2023 17:19:48 -0400 Subject: [PATCH] Fix the enum type so that the enum in the union can be interpreted correctly (#22) --- dive_core/generateAdrenoHeader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dive_core/generateAdrenoHeader.py b/dive_core/generateAdrenoHeader.py index 15f0766fc..f7266ab87 100644 --- a/dive_core/generateAdrenoHeader.py +++ b/dive_core/generateAdrenoHeader.py @@ -130,7 +130,7 @@ def outputEnums(pm4_packet_file_h, enums): if add_replace_in_dict: enum_dict[enum_value] = enum_value_name - pm4_packet_file_h.write("enum %s\n" % enum_name) + pm4_packet_file_h.write("enum %s: uint32_t\n" % enum_name) pm4_packet_file_h.write("{\n") for enum_value in enum_dict: pm4_packet_file_h.write("\t%s = 0x%x,\n" % (enum_dict[enum_value], enum_value))