Skip to content

test#1087

Draft
Anzooooo wants to merge 5 commits into
masterfrom
dsu-pma
Draft

test#1087
Anzooooo wants to merge 5 commits into
masterfrom
dsu-pma

Conversation

@Anzooooo

Copy link
Copy Markdown
Member

No description provided.

Anzooooo and others added 5 commits February 25, 2026 14:36
We have already assigned a value to cpu.pbmt at the end of gpa_stage. It should not be reassigned, as this will cause it to be overwritten incorrectly:
https://github.com/OpenXiangShan/NEMU/blob/112f2fd1e68d1c8978f964f6a2846104dcd928e8/src/isa/riscv64/system/mmu.c#L371-L382
When we close the address translation, We will split the cross-page store into two request. If we use the `paddr_write`'s `check_paddr` to check the PMP/PMA, The PMP/PMA checks of the two requests are separate, which will lead to:

* The first request didn't have exception, it will be written to memory.

* The second request hace exception, it will not to written to memory.

This makes absolutely no sense! All of the request shouldn't be written!

This commit allows the PMP/PMA check before the two request are written.
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