Lines Matching refs:Insn
509 uint32_t Insn = readBytesUnaligned(TargetPtr, 4); in resolveMIPSRelocation() local
519 Insn &= 0xfc000000; in resolveMIPSRelocation()
520 Insn |= (Value & 0x0fffffff) >> 2; in resolveMIPSRelocation()
521 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
525 Insn &= 0xffff0000; in resolveMIPSRelocation()
526 Insn |= ((Value + 0x8000) >> 16) & 0xffff; in resolveMIPSRelocation()
527 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
530 Insn &= 0xffff0000; in resolveMIPSRelocation()
531 Insn |= Value & 0xffff; in resolveMIPSRelocation()
532 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
541 Insn &= 0xffff0000; in resolveMIPSRelocation()
542 Insn |= ((Value - FinalAddress) >> 2) & 0xffff; in resolveMIPSRelocation()
543 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
548 Insn &= 0xfff80000; in resolveMIPSRelocation()
549 Insn |= ((Value - (FinalAddress & ~0x3)) >> 2) & 0x7ffff; in resolveMIPSRelocation()
550 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
555 Insn &= 0xffe00000; in resolveMIPSRelocation()
556 Insn |= ((Value - FinalAddress) >> 2) & 0x1fffff; in resolveMIPSRelocation()
557 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
562 Insn &= 0xfc000000; in resolveMIPSRelocation()
563 Insn |= ((Value - FinalAddress) >> 2) & 0x3ffffff; in resolveMIPSRelocation()
564 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
569 Insn &= 0xffff0000; in resolveMIPSRelocation()
570 Insn |= ((Value - FinalAddress + 0x8000) >> 16) & 0xffff; in resolveMIPSRelocation()
571 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
576 Insn &= 0xffff0000; in resolveMIPSRelocation()
577 Insn |= (Value - FinalAddress) & 0xffff; in resolveMIPSRelocation()
578 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
733 uint32_t Insn = readBytesUnaligned(TargetPtr, 4); in applyMIPS64Relocation() local
749 Insn = (Insn & 0xfc000000) | CalculatedValue; in applyMIPS64Relocation()
750 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
753 Insn = (Insn & 0xffff0000) | (CalculatedValue & 0xffff); in applyMIPS64Relocation()
754 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
765 Insn = (Insn & 0xffff0000) | CalculatedValue; in applyMIPS64Relocation()
766 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
769 Insn = (Insn & 0xfffc0000) | CalculatedValue; in applyMIPS64Relocation()
770 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
773 Insn = (Insn & 0xfff80000) | CalculatedValue; in applyMIPS64Relocation()
774 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
777 Insn = (Insn & 0xffe00000) | CalculatedValue; in applyMIPS64Relocation()
778 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()