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

Add test for vexriscv reset behavior #56

Merged
merged 14 commits into from
Feb 19, 2025
Merged

Conversation

martijnbastiaan
Copy link
Member

@martijnbastiaan martijnbastiaan commented Feb 12, 2025

Adds two tests:

  • Whether we can keep one CPU in reset and talk to the other one just fine
  • Whether we can keep one CPU in reset, talk to the other one, deassert the reset, and talk to the first one.

There is also a test that tests whether we can assert the reset while GDB is doing things and expect it to recover... but it can't reliably. I've disabled the test with an -- XXX: .... in hopes we can find a way to properly recover in the future.

@martijnbastiaan martijnbastiaan force-pushed the in-reset-behavior-tests branch 2 times, most recently from 388e613 to 5d37117 Compare February 13, 2025 12:47
@martijnbastiaan martijnbastiaan marked this pull request as ready for review February 13, 2025 12:48
@martijnbastiaan martijnbastiaan force-pushed the in-reset-behavior-tests branch 3 times, most recently from 5011bd3 to 1b343a9 Compare February 14, 2025 16:02
Turns out, the chain works just fine with one CPU in reset, which is the
behavior we want and expect.

This commit also factors out some of the shared code between the tests
to keep it a bit more manageable.
@martijnbastiaan martijnbastiaan force-pushed the in-reset-behavior-tests branch 4 times, most recently from c640ae8 to cb08e66 Compare February 19, 2025 12:07
@martijnbastiaan
Copy link
Member Author

@leonschoorl suggested completely restarting OpenOCD to get around the unreliable tests. This seems to work from an OpenOCD/GDB perspective, but then again breaks on some other problem with the remote bitbang implementation. I'm out of time for this one, so I'm dropping it..

@martijnbastiaan
Copy link
Member Author

@lmbollen I've renamed Args to TestContext. Thanks for the review!

@martijnbastiaan martijnbastiaan merged commit 638080b into main Feb 19, 2025
11 checks passed
@martijnbastiaan martijnbastiaan deleted the in-reset-behavior-tests branch February 19, 2025 13:15
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.

3 participants