Working + Stable - Mutex

This commit is contained in:
felsabbagh3
2019-02-22 04:01:07 -05:00
parent 96a8615a5f
commit 087a39ccf4
18 changed files with 845 additions and 182676 deletions

View File

@@ -304,6 +304,7 @@ Instruction *WordDecoder::decode(const std::vector<Byte> &v, Size &idx) {
case InstType::N_TYPE:
break;
case InstType::R_TYPE:
inst.setPred((code>>shift_rs1) & reg_mask);
inst.setDestReg((code>>shift_rd) & reg_mask);
inst.setSrcReg((code>>shift_rs1) & reg_mask);
inst.setSrcReg((code>>shift_rs2) & reg_mask);