broadcom/genxml: Support address fields with <32 bits
authorEric Anholt <eric@anholt.net>
Thu, 13 Jul 2017 19:40:58 +0000 (12:40 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 25 Jul 2017 21:55:12 +0000 (14:55 -0700)
commit82fdc106066002c5ed3a96a6aee01a8dc43dd7a5
treeedeeeb2211983c4710d15f9f618b7f5131a74efb
parent53492917e2153e9f5eb503792c2793a8e4cba391
broadcom/genxml: Support address fields with <32 bits

I was writing the XML such that the address field overlapped various flags
in the alignment bits, which caused pain when trying to unpack for decode.
Instead, keep the XML matching the docs (address fields don't overlap),
and just infer the appropriate shift value during decode.

During pack, the address is just applied to the appropriate bits
already, ignoring the sub-byte start/end fields.
src/broadcom/cle/v3d_decoder.c