> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 22:07:08 up 4 days, 17:12,  1 user,  load average: 0.83, 0.70, 0.56
This commit is contained in:
tracer-ics2023
2024-09-21 22:07:08 +08:00
committed by zzy
parent 713dfec6f3
commit 3a0434b17d

View File

@ -21,6 +21,7 @@ word_t isa_raise_intr(word_t NO, vaddr_t epc) {
/* TODO: Trigger an interrupt/exception with ``NO''.
* Then return the address of the interrupt/exception vector.
*/
printf("raise intr %d\n", NO);
C(MEPC) = epc;
C(MCAUSE) = NO;
return C(MTVEC);