Bug in c header file #87
Labels
kind: bug
Something isn't working
scope: sw generators
Related to software headers/sources generation
status: needs discussion
Need to collect feedback or discuss details
Hi. There is a bug in the c header file generation with the reserved-padding. It occurs when only the last bit of a field is not used (reserved) and the one before is. This results in a c-struct with 31 bits instead of 32, which is not good.
I can't test it right now, but my first guess is that it is a off-by-one mistake in the c_header.j2 file. The
should probably be
instead. Maybe someone can confirm?
In the generated md-file the padded reserved bit is generated correctly.
The text was updated successfully, but these errors were encountered: