> 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:56:55 up 4 days, 15:02, 1 user, load average: 0.94, 0.54, 0.42
This commit is contained in:
@ -129,9 +129,9 @@ 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("??????? ????? ????? 010 ????? 11100 11", csrrs , I, );
|
||||
INSTPAT("??????? ????? ????? 011 ????? 11100 11", csrrc , I, );
|
||||
// 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, );
|
||||
// INSTPAT("??????? ????? ????? 110 ????? 11100 11", csrrsi , I, );
|
||||
// INSTPAT("??????? ????? ????? 111 ????? 11100 11", csrrci , I, );
|
||||
|
Reference in New Issue
Block a user