On 2/6/25 11:02, Philippe Mathieu-Daudé wrote:
Could we always make .valid_sizes() explicit?
Yes (for example build() could even fail to compile if you don't have
impl_sizes/valid_sizes set), but why do you want that? I'm not even
sure that all cases of .valid.max_access_size=4 are correct...
Exactly for that :) Not have implicit default values, so correct
values are reviewed when models are added.
But I wouldn't bet that those that we have in C are reviewed and
correct... They are incorrect if the hardware accepts 8-byte writes,
either discarding the top 4 bytes (then impl must both be 8) or writing
to both registers (then impl must be 4).
Paolo