Skip to content
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

[svdconv] add protection handling to SvdItem::CopyItem and add SvdItem::SetProtection #1798

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ckudera
Copy link

@ckudera ckudera commented Oct 7, 2024

This PR adds protection handling to SvdItem::CopyItem. Currently, if an SvdItem is copied (e.g., dim or derivedFrom), its protection is not being copied (different from the other register properties size, access, resetValue, and resetMask). As a result, SvdItem::GetEffectiveProtection always returns UNDEF for inherited (derivedFrom) or dimensioned (dim) SvdItems. In my opinion, there is no reason for that, but please let me know if there is a specific reason (@thorstendb-ARM ?).

I'm currently working on SVD test cases for cmsis-svd and SVDSuite and am trying to figure out how the inheritance of the protection rights should be handled. I'm aware that the protection is currently not really used in svdconv, but I believe it should be handled correctly if already implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant