> 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
 19:58:56 up 4 days, 15:04,  1 user,  load average: 1.03, 0.71, 0.50
This commit is contained in:
tracer-ics2023
2024-09-21 19:58:56 +08:00
committed by zzy
parent 6e62dec493
commit 9e6e37e8ee

View File

@ -129,7 +129,7 @@ static int decode_exec(Decode *s) {
INSTPAT("0000001 ????? ????? 110 ????? 01100 11", rem , R, R(rd) = (src1 == INT_MIN && src2 == -1) ? 0 : (src2 ? (sword_t) src1 % (sword_t) src2 : src1));
INSTPAT("0000001 ????? ????? 111 ????? 01100 11", remu , R, R(rd) = src2 ? (word_t)src1 %(word_t) src2 : src1);
// INSTPAT("??????? ????? ????? 001 ????? 11100 11", csrrw , I, R(rd) = C(imm), C(imm) = src1);
INSTPAT("??????? ????? ????? 001 ????? 11100 11", csrrw , I, R(rd) = C(imm), C(imm) = src1);
INSTPAT("??????? ????? ????? 010 ????? 11100 11", csrrs , I, R(rd) = C(imm), C(imm) |= src1);
INSTPAT("??????? ????? ????? 011 ????? 11100 11", csrrc , I, R(rd) = C(imm), C(imm) &= ~src1);
// INSTPAT("??????? ????? ????? 101 ????? 11100 11", csrrwi , I, );