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

[rtl] Ibex services interrupts when single stepping #1814

Closed
GregAC opened this issue Sep 21, 2022 · 1 comment
Closed

[rtl] Ibex services interrupts when single stepping #1814

GregAC opened this issue Sep 21, 2022 · 1 comment
Labels
Component:DV Design verification (DV) or testing issue Component:RTL RTL issue Type:Bug Bugs
Milestone

Comments

@GregAC
Copy link
Collaborator

GregAC commented Sep 21, 2022

Ibex hard-codes dcsr.stepie to 0, meaning when single-stepping is enabled all interrupts should be masked. From trials with debugging on https://github.com/GregAC/ibex_super_system this is not the observed behaviour, a single step can enter an instruction handler.

In addition to fixing this we should look at our existing DV to determine if this bug could have been caught by it (single step tests are failing in the nightly regression so potentially have already found the bug, we just haven't had the time to look at the failures yet)

Increased estimate as I've spent time on testing this and not yet finished. Fix is available as a PR.
old estimate 4

estimate 6
remaining 2022-09-23 4
remaining 2022-09-30 2

@GregAC GregAC added Component:DV Design verification (DV) or testing issue Component:RTL RTL issue labels Sep 21, 2022
@GregAC GregAC added this to the V2 milestone Sep 21, 2022
@GregAC GregAC added the Type:Bug Bugs label Sep 21, 2022
@GregAC
Copy link
Collaborator Author

GregAC commented Sep 21, 2022

@hcallahan-lowrisc have you come across any behaviour around single stepping and interrupts in your debug DV work?

GregAC added a commit to GregAC/ibex that referenced this issue Sep 30, 2022
@GregAC GregAC closed this as completed in 48789dd Oct 13, 2022
christian-herber-nxp pushed a commit to NXP/openhwgroup-cve2 that referenced this issue Mar 2, 2023
davideschiavone pushed a commit to openhwgroup/cve2 that referenced this issue Mar 3, 2023
Fixes lowRISC#1814

Co-authored-by: Greg Chadwick <gac@lowrisc.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:DV Design verification (DV) or testing issue Component:RTL RTL issue Type:Bug Bugs
Projects
None yet
Development

No branches or pull requests

1 participant