Skip to content

Draft: Add Svadu, Svpbmt, and Svinval support - #3384

Draft
sjo99-kr wants to merge 17 commits into
openhwgroup:masterfrom
sjo99-kr:gsoc2026-cva6
Draft

Draft: Add Svadu, Svpbmt, and Svinval support#3384
sjo99-kr wants to merge 17 commits into
openhwgroup:masterfrom
sjo99-kr:gsoc2026-cva6

Conversation

@sjo99-kr

@sjo99-kr sjo99-kr commented Jul 8, 2026

Copy link
Copy Markdown
  • I have searched for similar pull requests
  • I am a human engaging in an interpersonal interaction. During this interaction, my words are my own and are not generated. If relevant, I provide links to my sources.

Note: This PR will be discussed on next CVA6 community meeting (15th July).

This draft PR adds initial support for several RISC-V virtual-memory-related extensions in CVA6:

  • Svadu: hardware update of PTE A/D bits
  • Svpbmt: page-based memory types
  • Svinval: fine-grained address-translation cache invalidation instructions

I am opening this as a draft PR to make the implementation visible early and to get feedback from the CVA6 community on the overall architecture, interfaces, and review direction.
Sorry for one BIG PR rather than separate PRs, since those extensions are all for virtual address-related modifications

New Module for Svadu

  • pte_update_unit.sv : For Svadu extension, I added new module for atomic operation on page-table entry. Briefy, it resides in store_unit.sv and shared AMO port wtih amo_buffer.sv.

You can find detailed descriptions of this in google doc file.
(doc: https://docs.google.com/document/d/1ypJdJz2CnGH1iI8uIijN8Pk9YOaYb5urEnP2yZa9vrY/edit?usp=sharing)

Verification

  • RISC-V ACT-4 Based coverage tests : I have implemented ACT-4 based assembly codes for testing architectural conflicts, and added some directed tests, which is not covered by current RISC-V ACT-4.
  • Regression tests : For verifying regression, I have tested this codes with current regression tests in CVA6, changing the configurations for UseSharedTLB, SvaduEn, SvpbmtEn, SvinvalEn.

You can find detailed descriptions of coverage tests and regression tests, the following results in google doc file.
(doc : https://docs.google.com/document/d/1ypJdJz2CnGH1iI8uIijN8Pk9YOaYb5urEnP2yZa9vrY/edit?usp=sharing)

Related Issue

--

There could be more issues related my PR and tests, but I'm happy to hang on here, and modify all concerns to be merged. So, feel free to tell me concerns, and really thank you guys for reviewing :)

Review_guidance_cva6.pdf

@sjo99-kr sjo99-kr changed the title DRAFT: Add Svadu, Svpbmt, and Svinval support Draft: Add Svadu, Svpbmt, and Svinval support Jul 8, 2026
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.

1 participant