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

[BUSKEEPER] Add NULL address check option #247

Merged
merged 8 commits into from
Jan 5, 2022
Merged

Conversation

stnolting
Copy link
Owner

This PR adds a new feature to the BUSKEEPER module (triggered by @emb4fun):

When setting bit 16 (NEORV32_BUSKEEPER) of the control register (NEORV32_BUSKEEPER.CTRL) the BUSKEEPER will issue a bus exception for all accesses to address 0x00000000 (instruction fetch / load data / store data). This can help to identify program bugs where uninitialized pointers are used.

Bus keeper can now optionally raise a bus exception if the CPU attempts to access address zero (for example by using an uninitailized pointer).
@stnolting stnolting added the HW hardware-related label Jan 4, 2022
@stnolting stnolting self-assigned this Jan 4, 2022
@stnolting stnolting marked this pull request as ready for review January 4, 2022 16:39
@stnolting stnolting merged commit 44524e5 into master Jan 5, 2022
@stnolting stnolting deleted the buskeeper_null_check branch January 5, 2022 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HW hardware-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant