-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
feature requestA request for a certain featureA request for a certain featurehardThis issue is very hard to fixThis issue is very hard to fixhelp wantedExtra attention is neededExtra attention is neededhigh priorityThis is very important nowThis is very important now
Description
首先实现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地址空间
- 中断处理
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestA request for a certain featureA request for a certain featurehardThis issue is very hard to fixThis issue is very hard to fixhelp wantedExtra attention is neededExtra attention is neededhigh priorityThis is very important nowThis is very important now