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

实现 Privileged ISA #9

Open
13 of 36 tasks
longfangsong opened this issue Oct 29, 2020 · 0 comments
Open
13 of 36 tasks

实现 Privileged ISA #9

longfangsong opened this issue Oct 29, 2020 · 0 comments
Labels
feature request A request for a certain feature hard This issue is very hard to fix help wanted Extra attention is needed high priority This is very important now

Comments

@longfangsong
Copy link
Member

longfangsong commented Oct 29, 2020

首先实现M级别的 Privileged ISA
需要实现的寄存器有:

CSR地址空间中:

  • misa
  • mvendorid(固定为0就好了)
  • marchid(暂时固定为0就好了)
  • mimpid
  • mhartid(单核下保持为0就好了)
  • mstatus & mstatush
  • mtvec
  • medeleg & mideleg 在没有其他特权级的情况下暂不需要
  • mip.MEIP
  • mip.MTIP
  • mip.MSIP
  • mie.MEIE
  • mie.MTIE
  • mie.MSIE
  • mcycle
  • minstret
  • mcounteren 在没有其他特权级的情况下暂不需要
  • mcountinhibit
  • mscratch
  • mepc
  • mcause
  • mtval

主地址空间中:

  • mtime(暂时数时钟周期数(=mcycle)就行,日后可能引入其他时钟源)
  • mtimecmp

需要实现的指令有:

  • ecall
  • ebreak
  • mret
  • wfi
  • csrrw
  • csrrs
  • csrrc
  • csrrwi
  • csrrsi
  • csrrci

需要实现的行为有:

  • CSR地址空间
  • 中断处理
@longfangsong longfangsong added feature request A request for a certain feature hard This issue is very hard to fix help wanted Extra attention is needed high priority This is very important now labels Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request for a certain feature hard This issue is very hard to fix help wanted Extra attention is needed high priority This is very important now
Projects
None yet
Development

No branches or pull requests

1 participant