Skip to content

PMP and wally32periph fixes#1357

Merged
jordancarlin merged 15 commits intoopenhwgroup:mainfrom
davidharrishmc:dev
Apr 14, 2025
Merged

PMP and wally32periph fixes#1357
jordancarlin merged 15 commits intoopenhwgroup:mainfrom
davidharrishmc:dev

Conversation

@davidharrishmc
Copy link
Contributor

@davidharrishmc davidharrishmc commented Apr 13, 2025

Partially fixed Wally PMP to pass TOR tests
Fixed #1321 wally32periph failing on rv32imc
Fixed #1358 PMP needs to check mstatus.MPRV
pmp code coverage 100%

@davidharrishmc davidharrishmc mentioned this pull request Apr 13, 2025
"rv64i_m/privilege/src/misalign-bne-01.S",
"rv64i_m/privilege/src/misalign-jal-01.S"
// removed because rv64gc supports Zicclsm
// commented out for now because rv64gc supports Zicclsm, but Sail does not yet. Restore when Sail supports Zicclsm.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sail has supported misaligned accesses since before I started working on it. We must just not have been enabling the option for it. I'll update our configuration accordingly soon (at this point going to wait for us to adopt the new config format that Sail uses).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave the comment until we enable misaligned for Sail, and then you can take it out and get these tests running in lockstep.

@@ -0,0 +1,922 @@
///////////////////////////////////////////
// WALLY-PERIPH-S.S
// 324 bit version including SEIP tests that require supervisor mode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 324 bit version including SEIP tests that require supervisor mode
// 32 bit version including SEIP tests that require supervisor mode

@jordancarlin jordancarlin merged commit d99833e into openhwgroup:main Apr 14, 2025
3 checks passed
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.

Wally lockstep mismatch wally32periph fails on rv32imc

2 participants