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

CVM Development #3980

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

CVM Development #3980

wants to merge 24 commits into from

Conversation

yxtx1994
Copy link

@yxtx1994 yxtx1994 commented Dec 4, 2024

  • Add bitmap module in MMU for memory isolation
  • Add memory encryption module based on AXI protoco
  • We can don't using these modules by setting the option HasCVMExtension&HasMEMencryption to false

@Tang-Haojin Tang-Haojin marked this pull request as draft December 4, 2024 08:28
@good-circle good-circle marked this pull request as ready for review December 9, 2024 03:38
src/main/scala/device/MemEncrypt.scala Outdated Show resolved Hide resolved
src/main/scala/device/MemEncryptUtil.scala Outdated Show resolved Hide resolved
src/main/scala/xiangshan/backend/fu/PMP.scala Show resolved Hide resolved
Copy link
Member

@eastonman eastonman left a comment

Choose a reason for hiding this comment

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

Ok, frontend part LGTM

@eastonman
Copy link
Member

Maybe @Gao-Zeyu should also check this out.

yxtx1994 and others added 20 commits December 30, 2024 11:33
…|| ishptw)

[fix] the signal “toLLPTW” gen logic(s2xlate === noS2xlate || s2xlate === onlyStage1)
[fix] the handle flow of jmp_bitmap_check and s2xlate === onlyStage2 request in PTW
[feat] Add the option to implement the Memenc module in CVMconfig
…ption module

[feat] delete unnecessary parameters in Soc
[feat] Add lock logic for CSR MCVM.BME&BMA when BME is valid.
[feat] Add BCLARE bit in CSR MCVM used for clear bitmap cache
[fix] bitmap req merge logic of enq entry and after lookup cache entry
[feat] remove bitmapReg clear logic in PTWCache for *fence, add clear logic when refill l0&sp
[fix] latch and update more state when PTW get jmp_bitmap_check req
[fix] l0BitmapReg wakeup uses pte_index without OHToUInt
[fix] bmppn compare and need_addr_check logic in LLPTW
… *atp.changed.

feat: Move KeyIDBits config from SoC.scala to Configs.scala, add KeyIDBits usage in PMP.scala.
chore: remove needless licenses in MemEncrypt.scala and MemEncryptUtil.scala.
…Bitmap check

    *MCVM changed to MBMC(Machine Lavel Bitmap Check Register)
    *Modified ‘BME’、‘BCLEAR’、‘CMODE’ to CSR MBMC's lower bits
    *All related parameters remove ”Option“
    *HasCVMExtension changed to HasBitmapCheck
@XiangShanRobot
Copy link

[Generated by IPC robot]
commit: fcf4b0c

commit astar copy_and_run coremark gcc gromacs lbm linux mcf microbench milc namd povray wrf xalancbmk
fcf4b0c 1.814 0.442 2.639 1.231 2.152 2.141 2.360 0.933 1.407 1.985 3.107 2.558 2.267 3.308

master branch:

commit astar copy_and_run coremark gcc gromacs lbm linux mcf microbench milc namd povray wrf xalancbmk
2f0227e 1.231 0.933 3.107 3.308
ca892e7 0.442 2.639 1.231 2.360 0.933 1.406 3.107 2.558 3.308
51aa1b6 1.814 0.442 2.639 1.231 2.152 2.141 2.360 0.933 1.403 1.985 3.107 2.558 2.267 3.308
ae39693 1.814 0.442 2.639 1.231 2.152 2.141 2.361 0.933 1.403 1.985 3.107 2.558 2.267 3.308

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.

4 participants