提交 1d5d6e51 编写于 作者: Z Zihao Yu

riscv64,intr: use machine external interrupt

上级 de50b4ee
......@@ -17,7 +17,8 @@ void raise_intr(uint32_t NO, vaddr_t epc) {
bool isa_query_intr(void) {
if (cpu.INTR && mstatus->mie) {
cpu.INTR = false;
raise_intr(0x80000005, cpu.pc);
// machine external interrupt
raise_intr(0x8000000b, cpu.pc);
return true;
}
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册