Lines Matching refs:instr_

2206   int32_t func = instr_.FunctionFieldRaw();  in SoftwareInterrupt()
2207 uint32_t code = (func == BREAK) ? instr_.Bits(25, 6) : -1; in SoftwareInterrupt()
2210 if (instr_.InstructionBits() == rtCallRedirInstr) { in SoftwareInterrupt()
2211 Redirection* redirection = Redirection::FromInstruction(instr_.instr()); in SoftwareInterrupt()
2430 HandleStop(code, instr_.instr()); in SoftwareInterrupt()
2670 ft = (instr_.FunctionFieldRaw() != MOVF) ? get_fpu_register_double(ft_reg()) in DecodeTypeRegisterDRsType()
2675 cc = instr_.FCccValue(); in DecodeTypeRegisterDRsType()
2677 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterDRsType()
2736 int32_t rt_reg = instr_.RtValue(); in DecodeTypeRegisterDRsType()
2747 if (instr_.Bit(16)) { // Read Tf bit. in DecodeTypeRegisterDRsType()
3069 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterWRsType()
3165 cc = instr_.FCccValue(); in DecodeTypeRegisterSRsType()
3167 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterSRsType()
3400 if (instr_.Bit(16)) { // Read Tf bit. in DecodeTypeRegisterSRsType()
3562 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterLRsType()
3664 switch (instr_.RsFieldRaw()) { in DecodeTypeRegisterCOP1()
3735 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterCOP1X()
3784 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterSPECIAL()
4065 uint32_t cc = instr_.FBccValue(); in DecodeTypeRegisterSPECIAL()
4067 if (instr_.Bit(16)) { // Read Tf bit. in DecodeTypeRegisterSPECIAL()
4090 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterSPECIAL2()
4113 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterSPECIAL3()
4148 int sa = instr_.SaFieldRaw() >> kSaShift; in DecodeTypeRegisterSPECIAL3()
4220 const uint8_t bp = instr_.Bp2Value(); in DecodeTypeRegisterSPECIAL3()
4250 if (instr_.IsMSABranchInstr()) { in DecodeMsaDataFormat()
4251 switch (instr_.RsFieldRaw()) { in DecodeMsaDataFormat()
4278 switch (instr_.MSAMinorOpcodeField()) { in DecodeMsaDataFormat()
4282 df = DF[instr_.Bits(22, 21)]; in DecodeMsaDataFormat()
4285 df = DF[instr_.Bits(1, 0)]; in DecodeMsaDataFormat()
4288 df = DF[instr_.MsaBitDf()]; in DecodeMsaDataFormat()
4291 df = DF[instr_.MsaElmDf()]; in DecodeMsaDataFormat()
4294 uint32_t opcode = instr_.InstructionBits() & kMsa3RFMask; in DecodeMsaDataFormat()
4304 df = DF[1 + instr_.Bit(21)]; in DecodeMsaDataFormat()
4307 df = DF[2 + instr_.Bit(21)]; in DecodeMsaDataFormat()
4312 df = DF[instr_.Bits(17, 16)]; in DecodeMsaDataFormat()
4315 df = DF[2 + instr_.Bit(16)]; in DecodeMsaDataFormat()
4328 uint32_t opcode = instr_.InstructionBits() & kMsaI8Mask; in DecodeTypeMsaI8()
4329 int8_t i8 = instr_.MsaImm8Value(); in DecodeTypeMsaI8()
4334 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4338 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4342 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4346 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4350 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4354 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4358 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4362 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4366 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4367 get_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4371 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4375 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4376 get_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4380 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4384 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4385 get_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4389 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4393 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4399 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4403 get_msa_register(instr_.WsValue(), ws.h); in DecodeTypeMsaI8()
4409 set_msa_register(instr_.WdValue(), wd.h); in DecodeTypeMsaI8()
4413 get_msa_register(instr_.WsValue(), ws.w); in DecodeTypeMsaI8()
4418 set_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsaI8()
4478 uint32_t opcode = instr_.InstructionBits() & kMsaI5Mask; in DecodeTypeMsaI5()
4482 int32_t i5 = static_cast<int32_t>(instr_.MsaImm5Value() << 27) >> 27; in DecodeTypeMsaI5()
4485 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsaI5()
4489 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaI5()
4514 uint32_t opcode = instr_.InstructionBits() & kMsaI5Mask; in DecodeTypeMsaI10()
4515 int64_t s10 = (static_cast<int64_t>(instr_.MsaImm10Value()) << 54) >> 54; in DecodeTypeMsaI10()
4522 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaI10()
4551 uint32_t opcode = instr_.InstructionBits() & kMsaLongerELMMask; in DecodeTypeMsaELM()
4552 int32_t n = instr_.MsaElmNValue(); in DecodeTypeMsaELM()
4579 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaELM()
4587 get_msa_register(instr_.WsValue(), ws.h); in DecodeTypeMsaELM()
4595 get_msa_register(instr_.WsValue(), ws.w); in DecodeTypeMsaELM()
4609 int32_t rs = get_register(instr_.WsValue()); in DecodeTypeMsaELM()
4610 get_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaELM()
4612 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaELM()
4618 int32_t rs = get_register(instr_.WsValue()); in DecodeTypeMsaELM()
4619 get_msa_register(instr_.WdValue(), wd.h); in DecodeTypeMsaELM()
4621 set_msa_register(instr_.WdValue(), wd.h); in DecodeTypeMsaELM()
4627 int32_t rs = get_register(instr_.WsValue()); in DecodeTypeMsaELM()
4628 get_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsaELM()
4630 set_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsaELM()
4783 uint32_t opcode = instr_.InstructionBits() & kMsaBITMask; in DecodeTypeMsaBIT()
4784 int32_t m = instr_.MsaBitMValue(); in DecodeTypeMsaBIT()
4788 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsaBIT()
4790 get_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaBIT()
4795 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaBIT()
4824 uint32_t opcode = instr_.InstructionBits() & kMsaMI10Mask; in DecodeTypeMsaMI10()
4825 int32_t s10 = (static_cast<int32_t>(instr_.MsaImmMI10Value()) << 22) >> 22; in DecodeTypeMsaMI10()
4826 int32_t rs = get_register(instr_.WsValue()); in DecodeTypeMsaMI10()
4833 wd.elem[i] = ReadMem<T>(addr, instr_.instr()); \ in DecodeTypeMsaMI10()
4835 set_msa_register(instr_.WdValue(), wd.elem); in DecodeTypeMsaMI10()
4838 get_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaMI10()
4841 WriteMem<T>(addr, wd.elem[i], instr_.instr()); \ in DecodeTypeMsaMI10()
5206 uint32_t opcode = instr_.InstructionBits() & kMsa3RMask; in DecodeTypeMsa3R()
5524 uint32_t opcode = instr_.InstructionBits() & kMsa3RFMask; in DecodeTypeMsa3RF()
5725 uint32_t opcode = instr_.InstructionBits() & kMsaVECMask; in DecodeTypeMsaVec()
5728 get_msa_register(instr_.WsValue(), ws.w); in DecodeTypeMsaVec()
5729 get_msa_register(instr_.WtValue(), wt.w); in DecodeTypeMsaVec()
5731 get_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsaVec()
5761 set_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsaVec()
5768 uint32_t opcode = instr_.InstructionBits() & kMsa2RMask; in DecodeTypeMsa2R()
5774 int32_t rs = get_register(instr_.WsValue()); in DecodeTypeMsa2R()
5778 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsa2R()
5783 int32_t rs = get_register(instr_.WsValue()); in DecodeTypeMsa2R()
5787 set_msa_register(instr_.WdValue(), wd.h); in DecodeTypeMsa2R()
5792 int32_t rs = get_register(instr_.WsValue()); in DecodeTypeMsa2R()
5796 set_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsa2R()
5806 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsa2R()
5811 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsa2R()
5834 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsa2R()
5843 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsa2R()
5866 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsa2R()
5872 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsa2R()
6182 uint32_t opcode = instr_.InstructionBits() & kMsa2RFMask; in DecodeTypeMsa2RF()
6223 switch (instr_.OpcodeFieldRaw()) { in DecodeTypeRegister()
6240 switch (instr_.MSAMinorOpcodeField()) { in DecodeTypeRegister()
6272 Opcode op = instr_.OpcodeFieldRaw(); in DecodeTypeImmediate()
6273 int32_t rs_reg = instr_.RsValue(); in DecodeTypeImmediate()
6274 int32_t rs = get_register(instr_.RsValue()); in DecodeTypeImmediate()
6276 int32_t rt_reg = instr_.RtValue(); // Destination register. in DecodeTypeImmediate()
6278 int16_t imm16 = instr_.Imm16Value(); in DecodeTypeImmediate()
6280 int32_t ft_reg = instr_.FtValue(); // Destination register. in DecodeTypeImmediate()
6306 int16_t imm16 = this->instr_.Imm16Value(); in DecodeTypeImmediate()
6318 int16_t imm16 = this->instr_.Imm16Value(); in DecodeTypeImmediate()
6353 int32_t imm = this->instr_.ImmValue(bits); in DecodeTypeImmediate()
6365 int32_t imm = this->instr_.ImmValue(bits); in DecodeTypeImmediate()
6375 switch (instr_.RsFieldRaw()) { in DecodeTypeImmediate()
6378 uint32_t cc = instr_.FBccValue(); in DecodeTypeImmediate()
6381 bool do_branch = (instr_.FBtrueValue()) ? cc_value : !cc_value; in DecodeTypeImmediate()
6457 switch (instr_.RtFieldRaw()) { in DecodeTypeImmediate()
6665 set_register(rt_reg, ReadH(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6673 alu_out = ReadW(addr, instr_.instr()); in DecodeTypeImmediate()
6680 set_register(rt_reg, ReadW(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6686 set_register(rt_reg, ReadHU(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6694 alu_out = ReadW(addr, instr_.instr()); in DecodeTypeImmediate()
6704 WriteH(rs + se_imm16, static_cast<uint16_t>(rt), instr_.instr()); in DecodeTypeImmediate()
6712 uint32_t mem_value = ReadW(addr, instr_.instr()) & mask; in DecodeTypeImmediate()
6714 WriteW(addr, mem_value, instr_.instr()); in DecodeTypeImmediate()
6718 WriteW(rs + se_imm16, rt, instr_.instr()); in DecodeTypeImmediate()
6724 uint32_t mem_value = ReadW(addr, instr_.instr()); in DecodeTypeImmediate()
6726 WriteW(addr, mem_value, instr_.instr()); in DecodeTypeImmediate()
6732 set_register(rt_reg, ReadW(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6738 WriteW(rs + se_imm16, rt, instr_.instr()); in DecodeTypeImmediate()
6745 ReadW(rs + se_imm16, instr_.instr(), FLOAT)); in DecodeTypeImmediate()
6753 set_fpu_register_double(ft_reg, ReadD(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6757 WriteW(rs + se_imm16, get_fpu_register_word(ft_reg), instr_.instr()); in DecodeTypeImmediate()
6761 WriteD(rs + se_imm16, get_fpu_register_double(ft_reg), instr_.instr()); in DecodeTypeImmediate()
6767 int32_t imm21 = instr_.Imm21Value(); in DecodeTypeImmediate()
6779 int32_t imm19 = instr_.Imm19Value(); in DecodeTypeImmediate()
6807 switch (instr_.FunctionFieldRaw()) { in DecodeTypeImmediate()
6811 int32_t base = get_register(instr_.BaseValue()); in DecodeTypeImmediate()
6812 int32_t offset9 = instr_.Imm9Value(); in DecodeTypeImmediate()
6813 set_register(rt_reg, ReadW(base + offset9, instr_.instr())); in DecodeTypeImmediate()
6819 int32_t base = get_register(instr_.BaseValue()); in DecodeTypeImmediate()
6820 int32_t offset9 = instr_.Imm9Value(); in DecodeTypeImmediate()
6821 WriteW(base + offset9, rt, instr_.instr()); in DecodeTypeImmediate()
6831 switch (instr_.MSAMinorOpcodeField()) { in DecodeTypeImmediate()
6877 SimInstruction simInstr = instr_; in DecodeTypeJump()
6917 instr_ = instr; in InstructionDecode()
6918 switch (instr_.InstructionType()) { in InstructionDecode()