-
Notifications
You must be signed in to change notification settings - Fork 156
Handle missing dimIndex on registers #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Per the SVD spec, dimIndex is not required: > By default, <dimIndex> is a value starting with 0. > Remark: Do not define <dimIndex> when using the placeholder [%s] in <name> or <displayName>. I interpret this as it being optional whether the name uses "%s" or "[%s]". Atmel SAMD21 SVDs use "%s" with no dimIndex for 0-indexed arrays. This also tests that dimIndex is sequential and numeric in a single pass without allocating temporary vectors, and fixes the typo adresses -> addresses.
Not sure how I missed this, but this PR also addresses the issues I had mentioned in #177. 👍 from me! |
@therealprof you may want to test your svds with this branch. |
@jamesmunns For the ATSAMD the result is pretty much the same (as far as I can tell from memory it's indentical) as with your PR. The result in this particular case is still broken but I blame Atmel here. |
@therealprof Yeah, the SAMD SVDs will still need some more features implemented including |
@homunkulus r+ |
bors r+ |
168: Handle missing dimIndex on registers r=japaric a=kevinmehall This supersedes @lucasbrendel's similar PR #153 and fixes #150. Per the [SVD spec](http://arm-software.github.io/CMSIS_5/SVD/html/elem_special.html#dimElementGroup_gr), dimIndex is not required: > By default, \<dimIndex\> is a value starting with 0. > Remark: Do not define \<dimIndex\> when using the placeholder [%s] in \<name\> or \<displayName\>. I interpret this as the element being optional with "%s" and not allowed with "[%s]" (this change does not reject the latter). Atmel SAMD21 SVDs use "%s" with no dimIndex for 0-indexed arrays. This also tests that dimIndex is sequential and numeric in a single pass without allocating temporary vectors, and fixes the typo adresses -> addresses.
Build failed |
bors retry |
bors-ng doesn't seem to have a retry command implemented, then ... bors r+ |
168: Handle missing dimIndex on registers r=japaric a=kevinmehall This supersedes @lucasbrendel's similar PR #153 and fixes #150. Per the [SVD spec](http://arm-software.github.io/CMSIS_5/SVD/html/elem_special.html#dimElementGroup_gr), dimIndex is not required: > By default, \<dimIndex\> is a value starting with 0. > Remark: Do not define \<dimIndex\> when using the placeholder [%s] in \<name\> or \<displayName\>. I interpret this as the element being optional with "%s" and not allowed with "[%s]" (this change does not reject the latter). Atmel SAMD21 SVDs use "%s" with no dimIndex for 0-indexed arrays. This also tests that dimIndex is sequential and numeric in a single pass without allocating temporary vectors, and fixes the typo adresses -> addresses.
Timed out |
All tests passed. Merging manually. |
This supersedes @lucasbrendel's similar PR #153 and fixes #150.
Per the SVD spec, dimIndex is not required:
I interpret this as the element being optional with "%s" and not allowed with "[%s]" (this change does not reject the latter). Atmel SAMD21 SVDs use "%s" with no dimIndex for 0-indexed arrays.
This also tests that dimIndex is sequential and numeric in a single pass without allocating temporary vectors, and fixes the typo adresses -> addresses.