Skip to content

[893] CortexM: expose RequestTranslationBlockInterrupt for precise bus fault modeling#196

Open
mamoncha wants to merge 1 commit intorenode:masterfrom
mamoncha:893-cortexm-precise-fault
Open

[893] CortexM: expose RequestTranslationBlockInterrupt for precise bus fault modeling#196
mamoncha wants to merge 1 commit intorenode:masterfrom
mamoncha:893-cortexm-precise-fault

Conversation

@mamoncha
Copy link
Copy Markdown
Contributor

Peripherals that model synchronous bus faults need to abort the current translation block so the stacked PC in the exception frame points at the faulting instruction, matching real Cortex-M hardware behavior.
Expose the existing tlib mechanism as a public method on CortexM so peripheral models can call it to produce precise faults with correct CFSR.PRECISERR semantics.

@mamoncha
Copy link
Copy Markdown
Contributor Author

Related to issue: renode/renode#893

@PiotrZierhoffer
Copy link
Copy Markdown
Member

Hi @mamoncha , thanks for the PR.

I would suggest, however, that you move it to the TranslationCPU level. There's no reason really to keep it in CortexM.

Otherwise - looks good.

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.

2 participants