Support non-constant unknown values in adt.py

On m3, these previouly expected-to-be-constant fields have exciting
non-constant values.  This updates adt.py to allow them to be
non-constant.  The second field is also really a flags field,
though i could not tell you all the flags involved.

Signed-off-by: Daniel Berlin <dberlin@dberlin.org>
This commit is contained in:
Daniel Berlin 2023-11-30 13:27:11 -05:00 committed by Hector Martin
parent c45da55256
commit b50b17ceb5

View file

@ -112,11 +112,11 @@ PMGRClocks = SafeGreedyRange(Struct(
))
PMGRPowerDomains = SafeGreedyRange(Struct(
"unk" / Const(0, Int8ul),
"unk" / Int8ul,
"perf_idx" / Int8ul,
"perf_block" / Int8ul,
"id" / Int8ul,
Const(0, Int32ul),
"flags" / Int32ul,
"name" / PaddedString(16, "ascii"),
))