Lines Matching refs:instr_

2161   int32_t func = instr_.FunctionFieldRaw();  in SoftwareInterrupt()
2162 uint32_t code = (func == BREAK) ? instr_.Bits(25, 6) : -1; in SoftwareInterrupt()
2164 if (instr_.InstructionBits() == rtCallRedirInstr) { in SoftwareInterrupt()
2165 Redirection* redirection = Redirection::FromInstruction(instr_.instr()); in SoftwareInterrupt()
2373 HandleStop(code, instr_.instr()); in SoftwareInterrupt()
2618 cc = instr_.FCccValue(); in DecodeTypeRegisterSRsType()
2620 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterSRsType()
2969 if (instr_.Bit(16)) { // Read Tf bit. in DecodeTypeRegisterSRsType()
2990 ft = (instr_.FunctionFieldRaw() != MOVF) ? get_fpu_register_double(ft_reg()) in DecodeTypeRegisterDRsType()
2993 cc = instr_.FCccValue(); in DecodeTypeRegisterDRsType()
2997 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterDRsType()
3065 if (instr_.Bit(16)) { // Read Tf bit. in DecodeTypeRegisterDRsType()
3362 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterWRsType()
3454 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterLRsType()
3543 switch (instr_.RsFieldRaw()) { in DecodeTypeRegisterCOP1()
3610 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterCOP1X()
3659 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterSPECIAL()
3905 instr_.FunctionFieldRaw() == DIV ? INT_MIN : LONG_MIN; in DecodeTypeRegisterSPECIAL()
3980 switch (instr_.SaValue()) { in DecodeTypeRegisterSPECIAL()
4102 uint32_t cc = instr_.FBccValue(); in DecodeTypeRegisterSPECIAL()
4104 if (instr_.Bit(16)) { // Read Tf bit. in DecodeTypeRegisterSPECIAL()
4127 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterSPECIAL2()
4156 switch (instr_.FunctionFieldRaw()) { in DecodeTypeRegisterSPECIAL3()
4253 int32_t sa = instr_.SaFieldRaw() >> kSaShift; in DecodeTypeRegisterSPECIAL3()
4331 const uint8_t bp2 = instr_.Bp2Value(); in DecodeTypeRegisterSPECIAL3()
4356 int32_t sa = instr_.SaFieldRaw() >> kSaShift; in DecodeTypeRegisterSPECIAL3()
4430 const uint8_t bp3 = instr_.Bp3Value(); in DecodeTypeRegisterSPECIAL3()
4461 if (instr_.IsMSABranchInstr()) { in DecodeMsaDataFormat()
4462 switch (instr_.RsFieldRaw()) { in DecodeMsaDataFormat()
4489 switch (instr_.MSAMinorOpcodeField()) { in DecodeMsaDataFormat()
4493 df = DF[instr_.Bits(22, 21)]; in DecodeMsaDataFormat()
4496 df = DF[instr_.Bits(1, 0)]; in DecodeMsaDataFormat()
4499 df = DF[instr_.MsaBitDf()]; in DecodeMsaDataFormat()
4502 df = DF[instr_.MsaElmDf()]; in DecodeMsaDataFormat()
4505 uint32_t opcode = instr_.InstructionBits() & kMsa3RFMask; in DecodeMsaDataFormat()
4515 df = DF[1 + instr_.Bit(21)]; in DecodeMsaDataFormat()
4518 df = DF[2 + instr_.Bit(21)]; in DecodeMsaDataFormat()
4523 df = DF[instr_.Bits(17, 16)]; in DecodeMsaDataFormat()
4526 df = DF[2 + instr_.Bit(16)]; in DecodeMsaDataFormat()
4539 uint32_t opcode = instr_.InstructionBits() & kMsaI8Mask; in DecodeTypeMsaI8()
4540 int8_t i8 = instr_.MsaImm8Value(); in DecodeTypeMsaI8()
4545 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4549 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4553 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4557 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4561 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4565 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4569 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4573 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4577 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4578 get_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4582 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4586 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4587 get_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4591 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4595 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4596 get_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4600 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4604 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaI8()
4610 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaI8()
4614 get_msa_register(instr_.WsValue(), ws.h); in DecodeTypeMsaI8()
4620 set_msa_register(instr_.WdValue(), wd.h); in DecodeTypeMsaI8()
4624 get_msa_register(instr_.WsValue(), ws.w); in DecodeTypeMsaI8()
4629 set_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsaI8()
4689 uint32_t opcode = instr_.InstructionBits() & kMsaI5Mask; in DecodeTypeMsaI5()
4693 int32_t i5 = static_cast<int32_t>(instr_.MsaImm5Value() << 27) >> 27; in DecodeTypeMsaI5()
4696 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsaI5()
4700 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaI5()
4725 uint32_t opcode = instr_.InstructionBits() & kMsaI5Mask; in DecodeTypeMsaI10()
4726 int64_t s10 = (static_cast<int64_t>(instr_.MsaImm10Value()) << 54) >> 54; in DecodeTypeMsaI10()
4733 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaI10()
4762 uint32_t opcode = instr_.InstructionBits() & kMsaLongerELMMask; in DecodeTypeMsaELM()
4763 int32_t n = instr_.MsaElmNValue(); in DecodeTypeMsaELM()
4791 get_msa_register(instr_.WsValue(), ws.b); in DecodeTypeMsaELM()
4798 get_msa_register(instr_.WsValue(), ws.h); in DecodeTypeMsaELM()
4805 get_msa_register(instr_.WsValue(), ws.w); in DecodeTypeMsaELM()
4812 get_msa_register(instr_.WsValue(), ws.d); in DecodeTypeMsaELM()
4825 int64_t rs = get_register(instr_.WsValue()); in DecodeTypeMsaELM()
4826 get_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaELM()
4828 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsaELM()
4834 int64_t rs = get_register(instr_.WsValue()); in DecodeTypeMsaELM()
4835 get_msa_register(instr_.WdValue(), wd.h); in DecodeTypeMsaELM()
4837 set_msa_register(instr_.WdValue(), wd.h); in DecodeTypeMsaELM()
4843 int64_t rs = get_register(instr_.WsValue()); in DecodeTypeMsaELM()
4844 get_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsaELM()
4846 set_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsaELM()
4852 int64_t rs = get_register(instr_.WsValue()); in DecodeTypeMsaELM()
4853 get_msa_register(instr_.WdValue(), wd.d); in DecodeTypeMsaELM()
4855 set_msa_register(instr_.WdValue(), wd.d); in DecodeTypeMsaELM()
5008 uint32_t opcode = instr_.InstructionBits() & kMsaBITMask; in DecodeTypeMsaBIT()
5009 int32_t m = instr_.MsaBitMValue(); in DecodeTypeMsaBIT()
5013 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsaBIT()
5015 get_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaBIT()
5020 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaBIT()
5049 uint32_t opcode = instr_.InstructionBits() & kMsaMI10Mask; in DecodeTypeMsaMI10()
5050 int64_t s10 = (static_cast<int64_t>(instr_.MsaImmMI10Value()) << 54) >> 54; in DecodeTypeMsaMI10()
5051 int64_t rs = get_register(instr_.WsValue()); in DecodeTypeMsaMI10()
5058 wd.elem[i] = ReadMem<T>(addr, instr_.instr()); \ in DecodeTypeMsaMI10()
5060 set_msa_register(instr_.WdValue(), wd.elem); in DecodeTypeMsaMI10()
5063 get_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsaMI10()
5066 WriteMem<T>(addr, wd.elem[i], instr_.instr()); \ in DecodeTypeMsaMI10()
5430 uint32_t opcode = instr_.InstructionBits() & kMsa3RMask; in DecodeTypeMsa3R()
5748 uint32_t opcode = instr_.InstructionBits() & kMsa3RFMask; in DecodeTypeMsa3RF()
5949 uint32_t opcode = instr_.InstructionBits() & kMsaVECMask; in DecodeTypeMsaVec()
5952 get_msa_register(instr_.WsValue(), ws.d); in DecodeTypeMsaVec()
5953 get_msa_register(instr_.WtValue(), wt.d); in DecodeTypeMsaVec()
5955 get_msa_register(instr_.WdValue(), wd.d); in DecodeTypeMsaVec()
5985 set_msa_register(instr_.WdValue(), wd.d); in DecodeTypeMsaVec()
5992 uint32_t opcode = instr_.InstructionBits() & kMsa2RMask; in DecodeTypeMsa2R()
5998 int64_t rs = get_register(instr_.WsValue()); in DecodeTypeMsa2R()
6002 set_msa_register(instr_.WdValue(), wd.b); in DecodeTypeMsa2R()
6007 int64_t rs = get_register(instr_.WsValue()); in DecodeTypeMsa2R()
6011 set_msa_register(instr_.WdValue(), wd.h); in DecodeTypeMsa2R()
6016 int64_t rs = get_register(instr_.WsValue()); in DecodeTypeMsa2R()
6020 set_msa_register(instr_.WdValue(), wd.w); in DecodeTypeMsa2R()
6025 int64_t rs = get_register(instr_.WsValue()); in DecodeTypeMsa2R()
6027 set_msa_register(instr_.WdValue(), wd.d); in DecodeTypeMsa2R()
6037 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsa2R()
6042 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsa2R()
6065 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsa2R()
6074 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsa2R()
6097 get_msa_register(instr_.WsValue(), ws.elem); \ in DecodeTypeMsa2R()
6103 set_msa_register(instr_.WdValue(), wd.elem); \ in DecodeTypeMsa2R()
6413 uint32_t opcode = instr_.InstructionBits() & kMsa2RFMask; in DecodeTypeMsa2RF()
6454 switch (instr_.OpcodeFieldRaw()) { in DecodeTypeRegister()
6471 switch (instr_.MSAMinorOpcodeField()) { in DecodeTypeRegister()
6506 Opcode op = instr_.OpcodeFieldRaw(); in DecodeTypeImmediate()
6507 int32_t rs_reg = instr_.RsValue(); in DecodeTypeImmediate()
6508 int64_t rs = get_register(instr_.RsValue()); in DecodeTypeImmediate()
6510 int32_t rt_reg = instr_.RtValue(); // Destination register. in DecodeTypeImmediate()
6512 int16_t imm16 = instr_.Imm16Value(); in DecodeTypeImmediate()
6513 int32_t imm18 = instr_.Imm18Value(); in DecodeTypeImmediate()
6515 int32_t ft_reg = instr_.FtValue(); // Destination register. in DecodeTypeImmediate()
6546 int16_t imm16 = instr_.Imm16Value(); in DecodeTypeImmediate()
6558 int16_t imm16 = instr_.Imm16Value(); in DecodeTypeImmediate()
6593 int32_t imm = instr_.ImmValue(bits); in DecodeTypeImmediate()
6605 int32_t imm = instr_.ImmValue(bits); in DecodeTypeImmediate()
6615 switch (instr_.RsFieldRaw()) { in DecodeTypeImmediate()
6617 uint32_t cc = instr_.FBccValue(); in DecodeTypeImmediate()
6620 bool do_branch = (instr_.FBtrueValue()) ? cc_value : !cc_value; in DecodeTypeImmediate()
6696 switch (instr_.RtFieldRaw()) { in DecodeTypeImmediate()
6913 set_register(rt_reg, ReadH(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6921 int32_t val = ReadW(addr, instr_.instr()); in DecodeTypeImmediate()
6928 set_register(rt_reg, ReadW(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6931 set_register(rt_reg, ReadWU(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6934 set_register(rt_reg, Read2W(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6940 set_register(rt_reg, ReadHU(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
6948 alu_out = ReadW(addr, instr_.instr()); in DecodeTypeImmediate()
6960 alu_out = Read2W(addr, instr_.instr()); in DecodeTypeImmediate()
6972 alu_out = Read2W(addr, instr_.instr()); in DecodeTypeImmediate()
6982 WriteH(rs + se_imm16, static_cast<uint16_t>(rt), instr_.instr()); in DecodeTypeImmediate()
6989 uint64_t mem_value = ReadW(addr, instr_.instr()) & mask; in DecodeTypeImmediate()
6991 WriteW(addr, static_cast<int32_t>(mem_value), instr_.instr()); in DecodeTypeImmediate()
6995 WriteW(rs + se_imm16, static_cast<int32_t>(rt), instr_.instr()); in DecodeTypeImmediate()
6998 Write2W(rs + se_imm16, rt, instr_.instr()); in DecodeTypeImmediate()
7004 uint64_t mem_value = ReadW(addr, instr_.instr()); in DecodeTypeImmediate()
7006 WriteW(addr, static_cast<int32_t>(mem_value), instr_.instr()); in DecodeTypeImmediate()
7014 uint64_t mem_value = Read2W(addr, instr_.instr()) & mask; in DecodeTypeImmediate()
7016 Write2W(addr, mem_value, instr_.instr()); in DecodeTypeImmediate()
7023 uint64_t mem_value = Read2W(addr, instr_.instr()); in DecodeTypeImmediate()
7025 Write2W(addr, mem_value, instr_.instr()); in DecodeTypeImmediate()
7031 set_register(rt_reg, ReadW(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
7037 WriteW(rs + se_imm16, static_cast<int32_t>(rt), instr_.instr()); in DecodeTypeImmediate()
7044 set_register(rt_reg, ReadD(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
7050 WriteD(rs + se_imm16, rt, instr_.instr()); in DecodeTypeImmediate()
7057 ReadW(rs + se_imm16, instr_.instr(), FLOAT_DOUBLE)); in DecodeTypeImmediate()
7060 set_fpu_register_double(ft_reg, ReadD(rs + se_imm16, instr_.instr())); in DecodeTypeImmediate()
7065 WriteW(rs + se_imm16, alu_out_32, instr_.instr()); in DecodeTypeImmediate()
7069 WriteD(rs + se_imm16, get_fpu_register_double(ft_reg), instr_.instr()); in DecodeTypeImmediate()
7075 int32_t imm21 = instr_.Imm21Value(); in DecodeTypeImmediate()
7087 int32_t imm19 = instr_.Imm19Value(); in DecodeTypeImmediate()
7094 alu_out = Read2W(addr, instr_.instr()); in DecodeTypeImmediate()
7138 switch (instr_.FunctionFieldRaw()) { in DecodeTypeImmediate()
7142 int64_t base = get_register(instr_.BaseValue()); in DecodeTypeImmediate()
7143 int32_t offset9 = instr_.Imm9Value(); in DecodeTypeImmediate()
7144 set_register(rt_reg, ReadW(base + offset9, instr_.instr())); in DecodeTypeImmediate()
7150 int64_t base = get_register(instr_.BaseValue()); in DecodeTypeImmediate()
7151 int32_t offset9 = instr_.Imm9Value(); in DecodeTypeImmediate()
7152 set_register(rt_reg, ReadD(base + offset9, instr_.instr())); in DecodeTypeImmediate()
7158 int64_t base = get_register(instr_.BaseValue()); in DecodeTypeImmediate()
7159 int32_t offset9 = instr_.Imm9Value(); in DecodeTypeImmediate()
7160 WriteW(base + offset9, static_cast<int32_t>(rt), instr_.instr()); in DecodeTypeImmediate()
7167 int64_t base = get_register(instr_.BaseValue()); in DecodeTypeImmediate()
7168 int32_t offset9 = instr_.Imm9Value(); in DecodeTypeImmediate()
7169 WriteD(base + offset9, rt, instr_.instr()); in DecodeTypeImmediate()
7180 switch (instr_.MSAMinorOpcodeField()) { in DecodeTypeImmediate()
7226 SimInstruction simInstr = instr_; in DecodeTypeJump()
7268 instr_ = instr; in InstructionDecode()
7269 switch (instr_.InstructionType()) { in InstructionDecode()