We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
首先实现M级别的 Privileged ISA 需要实现的寄存器有:
CSR地址空间中:
misa
mvendorid
marchid
mimpid
mhartid
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
mtimecmp
需要实现的指令有:
ecall
ebreak
mret
wfi
csrrw
csrrs
csrrc
csrrwi
csrrsi
csrrci
需要实现的行为有:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
首先实现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: