Lines Matching refs:Rn
1906 uint32_t Rn; // This function assumes Rn is the SP, but we should verify that. in EmulateSTRRtSP() local
1915 Rn = Bits32 (opcode, 19, 16); in EmulateSTRRtSP()
1917 if (Rn != 13) // 13 is the SP reg on ARM. Verify that Rn == SP. in EmulateSTRRtSP()
1924 if (wback && ((Rn == 15) || (Rn == Rt))) in EmulateSTRRtSP()
2391 uint32_t Rn; // the base register which contains the address of the table of branch lengths in EmulateTB() local
2396 Rn = Bits32(opcode, 19, 16); in EmulateTB()
2399 if (Rn == 13 || BadReg(Rm)) in EmulateTB()
2530 uint64_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateADDImmThumb() local
2535 AddWithCarryResult res = AddWithCarry (Rn, imm32, 0); in EmulateADDImmThumb()
2582 uint32_t Rd, Rn; in EmulateADDImmARM() local
2589 Rn = Bits32(opcode, 19, 16); in EmulateADDImmARM()
2598 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateADDImmARM()
2607 GetRegisterInfo (eRegisterKindDWARF, Rn, dwarf_reg); in EmulateADDImmARM()
2642 uint32_t Rd, Rn, Rm; in EmulateADDReg() local
2650 Rn = Bits32(opcode, 5, 3); in EmulateADDReg()
2657 Rd = Rn = Bit32(opcode, 7) << 3 | Bits32(opcode, 2, 0); in EmulateADDReg()
2662 if (Rn == 15 && Rm == 15) in EmulateADDReg()
2669 Rn = Bits32(opcode, 19, 16); in EmulateADDReg()
2679 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateADDReg()
2697 GetRegisterInfo (eRegisterKindDWARF, dwarf_r0 + Rn, op1_reg); in EmulateADDReg()
2725 uint32_t Rn; // the first operand in EmulateCMNImm() local
2729 Rn = Bits32(opcode, 19, 16); in EmulateCMNImm()
2731 if (Rn == 15) in EmulateCMNImm()
2735 Rn = Bits32(opcode, 19, 16); in EmulateCMNImm()
2742 uint32_t reg_val = ReadCoreReg(Rn, &success); in EmulateCMNImm()
2776 uint32_t Rn; // the first operand in EmulateCMNReg() local
2782 Rn = Bits32(opcode, 2, 0); in EmulateCMNReg()
2788 Rn = Bits32(opcode, 19, 16); in EmulateCMNReg()
2792 if (Rn == 15 || BadReg(Rm)) in EmulateCMNReg()
2796 Rn = Bits32(opcode, 19, 16); in EmulateCMNReg()
2804 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateCMNReg()
2845 uint32_t Rn; // the first operand in EmulateCMPImm() local
2849 Rn = Bits32(opcode, 10, 8); in EmulateCMPImm()
2853 Rn = Bits32(opcode, 19, 16); in EmulateCMPImm()
2855 if (Rn == 15) in EmulateCMPImm()
2859 Rn = Bits32(opcode, 19, 16); in EmulateCMPImm()
2866 uint32_t reg_val = ReadCoreReg(Rn, &success); in EmulateCMPImm()
2900 uint32_t Rn; // the first operand in EmulateCMPReg() local
2906 Rn = Bits32(opcode, 2, 0); in EmulateCMPReg()
2912 Rn = Bit32(opcode, 7) << 3 | Bits32(opcode, 2, 0); in EmulateCMPReg()
2916 if (Rn < 8 && Rm < 8) in EmulateCMPReg()
2918 if (Rn == 15 || Rm == 15) in EmulateCMPReg()
2922 Rn = Bits32(opcode, 19, 16); in EmulateCMPReg()
2930 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateCMPReg()
3279 uint32_t Rn; // the first operand register in EmulateShiftReg() local
3286 Rn = Rd; in EmulateShiftReg()
3292 Rn = Bits32(opcode, 19, 16); in EmulateShiftReg()
3295 if (BadReg(Rd) || BadReg(Rn) || BadReg(Rm)) in EmulateShiftReg()
3300 Rn = Bits32(opcode, 3, 0); in EmulateShiftReg()
3303 if (Rd == 15 || Rn == 15 || Rm == 15) in EmulateShiftReg()
3311 uint32_t value = ReadCoreReg (Rn, &success); in EmulateShiftReg()
3536 addr_t Rn = ReadCoreReg (n, &success); in EmulateLDMDA() local
3541 addr_t address = Rn - (addr_byte_size * BitCount (registers)) + addr_byte_size; in EmulateLDMDA()
3556 context.SetRegisterPlusOffset (dwarf_reg, Rn - (address + offset)); in EmulateLDMDA()
3588 addr_t addr = Rn + offset; in EmulateLDMDA()
3674 addr_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDMDB() local
3679 addr_t address = Rn - (addr_byte_size * BitCount (registers)); in EmulateLDMDB()
3684 context.SetRegisterPlusOffset (dwarf_reg, Rn - address); in EmulateLDMDB()
3691 context.SetRegisterPlusOffset (dwarf_reg, Rn - (address + offset)); in EmulateLDMDB()
3725 addr_t addr = Rn + offset; in EmulateLDMDB()
3785 addr_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDMIB() local
3790 addr_t address = Rn + addr_byte_size; in EmulateLDMIB()
3838 addr_t addr = Rn + offset; in EmulateLDMIB()
3878 uint32_t Rn; // the base register in EmulateLDRRtRnImm() local
3887 Rn = Bits32(opcode, 5, 3); in EmulateLDRRtRnImm()
3899 Rn = 13; in EmulateLDRRtRnImm()
3913 Rn = Bits32 (opcode, 19, 16); in EmulateLDRRtRnImm()
3937 Rn = Bits32 (opcode, 19, 16); in EmulateLDRRtRnImm()
3946 if ((wback && (Rn == Rt)) || ((Rt == 15) && InITBlock() && !LastInITBlock())) in EmulateLDRRtRnImm()
3954 uint32_t base = ReadCoreReg (Rn, &success); in EmulateLDRRtRnImm()
3965 GetRegisterInfo (eRegisterKindDWARF, dwarf_r0 + Rn, base_reg); in EmulateLDRRtRnImm()
3972 if (!WriteRegisterUnsigned (ctx, eRegisterKindDWARF, dwarf_r0 + Rn, offset_addr)) in EmulateLDRRtRnImm()
4214 addr_t Rn = ReadCoreReg (n, &success); in EmulateSTMDA() local
4218 addr_t address = Rn - (addr_byte_size * BitCount (registers)) + 4; in EmulateSTMDA()
4247 … context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, Rn - (address + offset)); in EmulateSTMDA()
4278 addr_t data = Rn + offset; in EmulateSTMDA()
4365 addr_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateSTMDB() local
4369 addr_t address = Rn - (addr_byte_size * BitCount (registers)); in EmulateSTMDB()
4398 … context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, Rn - (address + offset)); in EmulateSTMDB()
4429 addr_t data = Rn + offset; in EmulateSTMDB()
4490 addr_t Rn = ReadCoreReg (n, &success); in EmulateSTMIB() local
4494 addr_t address = Rn + addr_byte_size; in EmulateSTMIB()
4555 addr_t data = Rn + offset; in EmulateSTMIB()
5160 uint32_t Rn = ReadCoreReg (n, &success); in EmulateSTRHRegister() local
5172 offset_addr = Rn + offset; in EmulateSTRHRegister()
5174 offset_addr = Rn - offset; in EmulateSTRHRegister()
5181 address = Rn; in EmulateSTRHRegister()
5255 uint32_t Rd, Rn; in EmulateADCImm() local
5262 Rn = Bits32(opcode, 19, 16); in EmulateADCImm()
5265 if (BadReg(Rd) || BadReg(Rn)) in EmulateADCImm()
5270 Rn = Bits32(opcode, 19, 16); in EmulateADCImm()
5282 int32_t val1 = ReadCoreReg(Rn, &success); in EmulateADCImm()
5325 uint32_t Rd, Rn, Rm; in EmulateADCReg() local
5332 Rd = Rn = Bits32(opcode, 2, 0); in EmulateADCReg()
5340 Rn = Bits32(opcode, 19, 16); in EmulateADCReg()
5344 if (BadReg(Rd) || BadReg(Rn) || BadReg(Rm)) in EmulateADCReg()
5349 Rn = Bits32(opcode, 19, 16); in EmulateADCReg()
5362 int32_t val1 = ReadCoreReg(Rn, &success); in EmulateADCReg()
5476 uint32_t Rd, Rn; in EmulateANDImm() local
5484 Rn = Bits32(opcode, 19, 16); in EmulateANDImm()
5490 if (Rd == 13 || (Rd == 15 && !setflags) || BadReg(Rn)) in EmulateANDImm()
5495 Rn = Bits32(opcode, 19, 16); in EmulateANDImm()
5507 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateANDImm()
5550 uint32_t Rd, Rn, Rm; in EmulateANDReg() local
5558 Rd = Rn = Bits32(opcode, 2, 0); in EmulateANDReg()
5566 Rn = Bits32(opcode, 19, 16); in EmulateANDReg()
5573 if (Rd == 13 || (Rd == 15 && !setflags) || BadReg(Rn) || BadReg(Rm)) in EmulateANDReg()
5578 Rn = Bits32(opcode, 19, 16); in EmulateANDReg()
5591 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateANDReg()
5641 uint32_t Rd, Rn; in EmulateBICImm() local
5649 Rn = Bits32(opcode, 19, 16); in EmulateBICImm()
5652 if (BadReg(Rd) || BadReg(Rn)) in EmulateBICImm()
5657 Rn = Bits32(opcode, 19, 16); in EmulateBICImm()
5670 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateBICImm()
5713 uint32_t Rd, Rn, Rm; in EmulateBICReg() local
5721 Rd = Rn = Bits32(opcode, 2, 0); in EmulateBICReg()
5729 Rn = Bits32(opcode, 19, 16); in EmulateBICReg()
5733 if (BadReg(Rd) || BadReg(Rn) || BadReg(Rm)) in EmulateBICReg()
5738 Rn = Bits32(opcode, 19, 16); in EmulateBICReg()
5752 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateBICReg()
6037 uint32_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDRRegister() local
6051 offset_addr = Rn + offset; in EmulateLDRRegister()
6053 offset_addr = Rn - offset; in EmulateLDRRegister()
6059 address = Rn; in EmulateLDRRegister()
6067 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRRegister()
6089 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRRegister()
6100 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRRegister()
6215 uint32_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDRBImmediate() local
6224 offset_addr = Rn + imm32; in EmulateLDRBImmediate()
6226 offset_addr = Rn - imm32; in EmulateLDRBImmediate()
6232 address = Rn; in EmulateLDRBImmediate()
6242 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateLDRBImmediate()
6457 uint32_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDRBRegister() local
6462 offset_addr = Rn + offset; in EmulateLDRBRegister()
6464 offset_addr = Rn - offset; in EmulateLDRBRegister()
6470 address = Rn; in EmulateLDRBRegister()
6478 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRBRegister()
6592 uint32_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDRHImmediate() local
6600 offset_addr = Rn + imm32; in EmulateLDRHImmediate()
6602 offset_addr = Rn - imm32; in EmulateLDRHImmediate()
6608 address = Rn; in EmulateLDRHImmediate()
6616 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRHImmediate()
6636 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRHImmediate()
6876 uint64_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDRHRegister() local
6881 offset_addr = Rn + offset; in EmulateLDRHRegister()
6883 offset_addr = Rn - offset; in EmulateLDRHRegister()
6889 address = Rn; in EmulateLDRHRegister()
7033 uint64_t Rn = ReadCoreReg (n, &success); in EmulateLDRSBImmediate() local
7042 offset_addr = Rn + imm32; in EmulateLDRSBImmediate()
7044 offset_addr = Rn - imm32; in EmulateLDRSBImmediate()
7050 address = Rn; in EmulateLDRSBImmediate()
7058 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRSBImmediate()
7283 uint64_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDRSBRegister() local
7288 offset_addr = Rn + offset; in EmulateLDRSBRegister()
7290 offset_addr = Rn - offset; in EmulateLDRSBRegister()
7296 address = Rn; in EmulateLDRSBRegister()
7432 uint64_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDRSHImmediate() local
7438 offset_addr = Rn + imm32; in EmulateLDRSHImmediate()
7440 offset_addr = Rn - imm32; in EmulateLDRSHImmediate()
7447 address = Rn; in EmulateLDRSHImmediate()
7455 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRSHImmediate()
7476 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRSHImmediate()
7703 uint64_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateLDRSHRegister() local
7717 offset_addr = Rn + offset; in EmulateLDRSHRegister()
7719 offset_addr = Rn - offset; in EmulateLDRSHRegister()
7725 address = Rn; in EmulateLDRSHRegister()
8191 uint64_t Rn = ReadRegisterUnsigned (eRegisterKindDWARF, dwarf_r0 + n, 0, &success); in EmulateRFE() local
8198 address = Rn; in EmulateRFE()
8200 address = Rn - 8; in EmulateRFE()
8212 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateRFE()
8234 if (!WriteRegisterUnsigned (context, eRegisterKindDWARF, dwarf_r0 + n, Rn + 8)) in EmulateRFE()
8240 if (!WriteRegisterUnsigned (context, eRegisterKindDWARF, dwarf_r0 + n, Rn - 8)) in EmulateRFE()
8275 uint32_t Rd, Rn; in EmulateEORImm() local
8283 Rn = Bits32(opcode, 19, 16); in EmulateEORImm()
8289 if (Rd == 13 || (Rd == 15 && !setflags) || BadReg(Rn)) in EmulateEORImm()
8294 Rn = Bits32(opcode, 19, 16); in EmulateEORImm()
8307 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateEORImm()
8350 uint32_t Rd, Rn, Rm; in EmulateEORReg() local
8358 Rd = Rn = Bits32(opcode, 2, 0); in EmulateEORReg()
8366 Rn = Bits32(opcode, 19, 16); in EmulateEORReg()
8373 if (Rd == 13 || (Rd == 15 && !setflags) || BadReg(Rn) || BadReg(Rm)) in EmulateEORReg()
8378 Rn = Bits32(opcode, 19, 16); in EmulateEORReg()
8392 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateEORReg()
8442 uint32_t Rd, Rn; in EmulateORRImm() local
8450 Rn = Bits32(opcode, 19, 16); in EmulateORRImm()
8454 if (Rn == 15) in EmulateORRImm()
8456 if (BadReg(Rd) || Rn == 13) in EmulateORRImm()
8461 Rn = Bits32(opcode, 19, 16); in EmulateORRImm()
8473 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateORRImm()
8516 uint32_t Rd, Rn, Rm; in EmulateORRReg() local
8524 Rd = Rn = Bits32(opcode, 2, 0); in EmulateORRReg()
8532 Rn = Bits32(opcode, 19, 16); in EmulateORRReg()
8537 if (Rn == 15) in EmulateORRReg()
8539 if (BadReg(Rd) || Rn == 13 || BadReg(Rm)) in EmulateORRReg()
8544 Rn = Bits32(opcode, 19, 16); in EmulateORRReg()
8557 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateORRReg()
8605 uint32_t Rn; // the first operand in EmulateRSBImm() local
8611 Rn = Bits32(opcode, 5, 3); in EmulateRSBImm()
8617 Rn = Bits32(opcode, 19, 16); in EmulateRSBImm()
8620 if (BadReg(Rd) || BadReg(Rn)) in EmulateRSBImm()
8625 Rn = Bits32(opcode, 19, 16); in EmulateRSBImm()
8637 uint32_t reg_val = ReadCoreReg(Rn, &success); in EmulateRSBImm()
8678 uint32_t Rn; // the first operand in EmulateRSBReg() local
8686 Rn = Bits32(opcode, 19, 16); in EmulateRSBReg()
8691 if (BadReg(Rd) || BadReg(Rn) || BadReg(Rm)) in EmulateRSBReg()
8696 Rn = Bits32(opcode, 19, 16); in EmulateRSBReg()
8709 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateRSBReg()
8757 uint32_t Rn; // the first operand in EmulateRSCImm() local
8763 Rn = Bits32(opcode, 19, 16); in EmulateRSCImm()
8775 uint32_t reg_val = ReadCoreReg(Rn, &success); in EmulateRSCImm()
8817 uint32_t Rn; // the first operand in EmulateRSCReg() local
8825 Rn = Bits32(opcode, 19, 16); in EmulateRSCReg()
8838 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateRSCReg()
8886 uint32_t Rn; // the first operand in EmulateSBCImm() local
8892 Rn = Bits32(opcode, 19, 16); in EmulateSBCImm()
8895 if (BadReg(Rd) || BadReg(Rn)) in EmulateSBCImm()
8900 Rn = Bits32(opcode, 19, 16); in EmulateSBCImm()
8912 uint32_t reg_val = ReadCoreReg(Rn, &success); in EmulateSBCImm()
8954 uint32_t Rn; // the first operand in EmulateSBCReg() local
8961 Rd = Rn = Bits32(opcode, 2, 0); in EmulateSBCReg()
8969 Rn = Bits32(opcode, 19, 16); in EmulateSBCReg()
8973 if (BadReg(Rd) || BadReg(Rn) || BadReg(Rm)) in EmulateSBCReg()
8978 Rn = Bits32(opcode, 19, 16); in EmulateSBCReg()
8991 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateSBCReg()
9035 uint32_t Rn; // the first operand in EmulateSUBImmThumb() local
9041 Rn = Bits32(opcode, 5, 3); in EmulateSUBImmThumb()
9046 Rd = Rn = Bits32(opcode, 10, 8); in EmulateSUBImmThumb()
9052 Rn = Bits32(opcode, 19, 16); in EmulateSUBImmThumb()
9061 if (Rn == 13) in EmulateSUBImmThumb()
9065 if (Rd == 13 || (Rd == 15 && !setflags) || Rn == 15) in EmulateSUBImmThumb()
9070 Rn = Bits32(opcode, 19, 16); in EmulateSUBImmThumb()
9075 if (Rn == 15) in EmulateSUBImmThumb()
9079 if (Rn == 13) in EmulateSUBImmThumb()
9089 uint32_t reg_val = ReadCoreReg(Rn, &success); in EmulateSUBImmThumb()
9129 uint32_t Rn; // the first operand in EmulateSUBImmARM() local
9135 Rn = Bits32(opcode, 19, 16); in EmulateSUBImmARM()
9140 if (Rn == 15 && !setflags) in EmulateSUBImmARM()
9144 if (Rn == 13) in EmulateSUBImmARM()
9155 uint32_t reg_val = ReadCoreReg(Rn, &success); in EmulateSUBImmARM()
9191 uint32_t Rn; in EmulateTEQImm() local
9197 Rn = Bits32(opcode, 19, 16); in EmulateTEQImm()
9199 if (BadReg(Rn)) in EmulateTEQImm()
9203 Rn = Bits32(opcode, 19, 16); in EmulateTEQImm()
9211 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateTEQImm()
9249 uint32_t Rn, Rm; in EmulateTEQReg() local
9256 Rn = Bits32(opcode, 19, 16); in EmulateTEQReg()
9259 if (BadReg(Rn) || BadReg(Rm)) in EmulateTEQReg()
9263 Rn = Bits32(opcode, 19, 16); in EmulateTEQReg()
9272 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateTEQReg()
9316 uint32_t Rn; in EmulateTSTImm() local
9322 Rn = Bits32(opcode, 19, 16); in EmulateTSTImm()
9324 if (BadReg(Rn)) in EmulateTSTImm()
9328 Rn = Bits32(opcode, 19, 16); in EmulateTSTImm()
9336 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateTSTImm()
9373 uint32_t Rn, Rm; in EmulateTSTReg() local
9380 Rn = Bits32(opcode, 2, 0); in EmulateTSTReg()
9386 Rn = Bits32(opcode, 19, 16); in EmulateTSTReg()
9389 if (BadReg(Rn) || BadReg(Rm)) in EmulateTSTReg()
9393 Rn = Bits32(opcode, 19, 16); in EmulateTSTReg()
9402 uint32_t val1 = ReadCoreReg(Rn, &success); in EmulateTSTReg()
9593 uint32_t Rn = ReadCoreReg (n, &success); in EmulateADDRegShift() local
9597 AddWithCarryResult res = AddWithCarry (Rn, shifted, 0); in EmulateADDRegShift()
9718 uint32_t Rn = ReadCoreReg (n, &success); in EmulateSUBReg() local
9722 AddWithCarryResult res = AddWithCarry (Rn, ~shifted, 1); in EmulateSUBReg()
9816 uint32_t Rn = ReadCoreReg (n, &success); in EmulateSTREX() local
9820 addr_t address = Rn + imm32; in EmulateSTREX()
9910 uint32_t Rn = ReadCoreReg (n, &success); in EmulateSTRBImmARM() local
9916 offset_addr = Rn + imm32; in EmulateSTRBImmARM()
9918 offset_addr = Rn - imm32; in EmulateSTRBImmARM()
9925 address = Rn; in EmulateSTRBImmARM()
9938 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateSTRBImmARM()
10005 uint32_t Rn = ReadCoreReg (n, &success); in EmulateSTRImmARM() local
10011 offset_addr = Rn + imm32; in EmulateSTRImmARM()
10013 offset_addr = Rn - imm32; in EmulateSTRImmARM()
10020 address = Rn; in EmulateSTRImmARM()
10028 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateSTRImmARM()
10152 uint32_t Rn = ReadCoreReg (n, &success); in EmulateLDRDImmediate() local
10158 offset_addr = Rn + imm32; in EmulateLDRDImmediate()
10160 offset_addr = Rn - imm32; in EmulateLDRDImmediate()
10167 address = Rn; in EmulateLDRDImmediate()
10175 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateLDRDImmediate()
10187 context.SetRegisterPlusOffset (base_reg, (address + 4) - Rn); in EmulateLDRDImmediate()
10274 uint32_t Rn = ReadCoreReg (n, &success); in EmulateLDRDRegister() local
10289 offset_addr = Rn + Rm; in EmulateLDRDRegister()
10291 offset_addr = Rn - Rm; in EmulateLDRDRegister()
10298 address = Rn; in EmulateLDRDRegister()
10425 uint32_t Rn = ReadCoreReg (n, &success); in EmulateSTRDImm() local
10432 offset_addr = Rn + imm32; in EmulateSTRDImm()
10434 offset_addr = Rn - imm32; in EmulateSTRDImm()
10441 address = Rn; in EmulateSTRDImm()
10453 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateSTRDImm()
10462 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, (address + 4) - Rn); in EmulateSTRDImm()
10557 uint32_t Rn = ReadCoreReg (n, &success); in EmulateSTRDReg() local
10568 offset_addr = Rn + Rm; in EmulateSTRDReg()
10570 offset_addr = Rn - Rm; in EmulateSTRDReg()
10577 address = Rn; in EmulateSTRDReg()
10723 uint32_t Rn = ReadCoreReg (n, &success); in EmulateVLDM() local
10730 address = Rn; in EmulateVLDM()
10732 address = Rn - imm32; in EmulateVLDM()
10741 value = Rn + imm32; in EmulateVLDM()
10743 value = Rn - imm32; in EmulateVLDM()
10746 context.SetImmediateSigned (value - Rn); in EmulateVLDM()
10763 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateVLDM()
10777 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateVLDM()
10782 context.SetRegisterPlusOffset (base_reg, (address + 4) - Rn); in EmulateVLDM()
10916 uint32_t Rn = ReadCoreReg (n, &success); in EmulateVSTM() local
10923 address = Rn; in EmulateVSTM()
10925 address = Rn - imm32; in EmulateVSTM()
10933 value = Rn + imm32; in EmulateVSTM()
10935 value = Rn - imm32; in EmulateVSTM()
10938 context.SetRegisterPlusOffset (base_reg, value - Rn); in EmulateVSTM()
10961 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateVSTM()
10981 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateVSTM()
10985 … context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, (address + 4) - Rn); in EmulateVSTM()
10991 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateVSTM()
10995 … context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, (address + 4) - Rn); in EmulateVSTM()
11070 uint32_t Rn = ReadCoreReg (n, &success); in EmulateVLDR() local
11077 base = AlignPC (Rn); in EmulateVLDR()
11079 base = Rn; in EmulateVLDR()
11208 uint32_t Rn = ReadCoreReg (n, &success); in EmulateVSTR() local
11215 address = Rn + imm32; in EmulateVSTR()
11217 address = Rn - imm32; in EmulateVSTR()
11226 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateVSTR()
11252 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, (address + 4) - Rn); in EmulateVSTR()
11261 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, (address + 4) - Rn); in EmulateVSTR()
11379 uint32_t Rn = ReadCoreReg (n, &success); in EmulateVLD1Multiple() local
11384 addr_t address = Rn; in EmulateVLD1Multiple()
11402 uint32_t value = Rn + offset; in EmulateVLD1Multiple()
11420 context.SetRegisterPlusOffset (base_reg, address - Rn); in EmulateVLD1Multiple()
11551 uint32_t Rn = ReadCoreReg (n, &success); in EmulateVLD1Single() local
11556 addr_t address = Rn; in EmulateVLD1Single()
11574 uint32_t value = Rn + offset; in EmulateVLD1Single()
11718 uint32_t Rn = ReadCoreReg (n, &success); in EmulateVST1Multiple() local
11723 addr_t address = Rn; in EmulateVST1Multiple()
11744 if (!WriteRegisterUnsigned (context, eRegisterKindDWARF, dwarf_r0 + n, Rn + offset)) in EmulateVST1Multiple()
11764 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateVST1Multiple()
11890 uint32_t Rn = ReadCoreReg (n, &success); in EmulateVST1Single() local
11895 addr_t address = Rn; in EmulateVST1Single()
11916 if (!WriteRegisterUnsigned (context, eRegisterKindDWARF, dwarf_r0 + n, Rn + offset)) in EmulateVST1Single()
11930 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, address - Rn); in EmulateVST1Single()
12016 uint32_t Rn = ReadCoreReg (n, &success); in EmulateVLD1SingleAll() local
12021 addr_t address = Rn; in EmulateVLD1SingleAll()
12042 if (!WriteRegisterUnsigned (context, eRegisterKindDWARF, dwarf_r0 + n, Rn + offset)) in EmulateVLD1SingleAll()
12167 uint32_t Rn = ReadCoreReg (n, &success); in EmulateSUBSPcLrEtc() local
12178 result.result = Rn & operand2; in EmulateSUBSPcLrEtc()
12183 result.result = Rn ^ operand2; in EmulateSUBSPcLrEtc()
12188 result = AddWithCarry (Rn, ~(operand2), 1); in EmulateSUBSPcLrEtc()
12193 result = AddWithCarry (~(Rn), operand2, 1); in EmulateSUBSPcLrEtc()
12198 result = AddWithCarry (Rn, operand2, 0); in EmulateSUBSPcLrEtc()
12203 result = AddWithCarry (Rn, operand2, APSR_C); in EmulateSUBSPcLrEtc()
12208 result = AddWithCarry (Rn, ~(operand2), APSR_C); in EmulateSUBSPcLrEtc()
12213 result = AddWithCarry (~(Rn), operand2, APSR_C); in EmulateSUBSPcLrEtc()
12218 result.result = Rn | operand2; in EmulateSUBSPcLrEtc()
12228 result.result = Rn & ~(operand2); in EmulateSUBSPcLrEtc()