> 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:10:37 up 4 days, 17:16,  1 user,  load average: 0.98, 0.77, 0.61
This commit is contained in:
tracer-ics2023
2024-09-21 22:10:38 +08:00
committed by zzy
parent b93914f1db
commit 807f53774d

View File

@ -117,7 +117,7 @@ static int decode_exec(Decode *s) {
INSTPAT("0000000 ????? ????? 110 ????? 01100 11", or , R, R(rd) = src1 | src2);
INSTPAT("0000000 ????? ????? 111 ????? 01100 11", and , R, R(rd) = src1 & src2);
INSTPAT("0000000 00000 00000 000 00000 11100 11", ecall , N, isa_raise_intr(INTR_EMPTY, s->pc));
INSTPAT("0000000 00000 00000 000 00000 11100 11", ecall , N, s->dnpc = isa_raise_intr(INTR_EMPTY, s->pc));
INSTPAT("0000000 00001 00000 000 00000 11100 11", ebreak , N, NEMUTRAP(s->pc, R(10))); // R(10) is $a0
INSTPAT("0000001 ????? ????? 000 ????? 01100 11", mul , R, R(rd) = (sword_t)src1 * (sword_t)src2);