实现 Privileged ISA #9
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
首先实现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
需要实现的行为有:
The text was updated successfully, but these errors were encountered: