Lines Matching full:gpr

133 		ea += regs->gpr[ra];  in dform_ea()
151 ea += regs->gpr[ra]; in dsform_ea()
168 ea += regs->gpr[ra]; in dqform_ea()
185 ea = regs->gpr[rb]; in xform_ea()
187 ea += regs->gpr[ra]; in xform_ea()
219 ea += regs->gpr[ra]; in mlsd_8lsd_ea()
663 err = do_lq(ea, &regs->gpr[reg]); in emulate_lq()
665 err = read_mem(&regs->gpr[reg + IS_LE], ea, 8, regs); in emulate_lq()
667 err = read_mem(&regs->gpr[reg + IS_BE], ea + 8, 8, regs); in emulate_lq()
670 do_byte_reverse(&regs->gpr[reg], 16); in emulate_lq()
682 vals[0] = regs->gpr[reg]; in emulate_stq()
683 vals[1] = regs->gpr[reg + 1]; in emulate_stq()
1337 /* Following cases refer to regs->gpr[], so we need all regs */ in analyse_instr()
1353 op->val = regs->gpr[rd]; in analyse_instr()
1369 if (rd & trap_compare(regs->gpr[ra], (short) word)) in analyse_instr()
1374 if (rd & trap_compare((int)regs->gpr[ra], (short) word)) in analyse_instr()
1386 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1387 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1392 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1393 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1398 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1399 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1411 op->val = regs->gpr[ra] * (short) word; in analyse_instr()
1416 add_with_carry(regs, op, rd, ~regs->gpr[ra], imm, 1); in analyse_instr()
1421 val = regs->gpr[ra]; in analyse_instr()
1431 val = regs->gpr[ra]; in analyse_instr()
1441 add_with_carry(regs, op, rd, regs->gpr[ra], imm, 0); in analyse_instr()
1446 add_with_carry(regs, op, rd, regs->gpr[ra], imm, 0); in analyse_instr()
1453 imm += regs->gpr[ra]; in analyse_instr()
1460 imm += regs->gpr[ra]; in analyse_instr()
1478 val = DATA32(regs->gpr[rd]); in analyse_instr()
1480 op->val = (regs->gpr[ra] & ~imm) | (ROTATE(val, rb) & imm); in analyse_instr()
1486 val = DATA32(regs->gpr[rd]); in analyse_instr()
1493 rb = regs->gpr[rb] & 0x1f; in analyse_instr()
1494 val = DATA32(regs->gpr[rd]); in analyse_instr()
1499 op->val = regs->gpr[rd] | (unsigned short) word; in analyse_instr()
1504 op->val = regs->gpr[rd] | (imm << 16); in analyse_instr()
1508 op->val = regs->gpr[rd] ^ (unsigned short) word; in analyse_instr()
1513 op->val = regs->gpr[rd] ^ (imm << 16); in analyse_instr()
1517 op->val = regs->gpr[rd] & (unsigned short) word; in analyse_instr()
1523 op->val = regs->gpr[rd] & (imm << 16); in analyse_instr()
1530 val = regs->gpr[rd]; in analyse_instr()
1546 val = (regs->gpr[ra] & ~imm) | in analyse_instr()
1552 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
1572 val2 = (ra) ? regs->gpr[ra] : 0; in analyse_instr()
1574 op->val = (val) ? val2 : regs->gpr[rb]; in analyse_instr()
1581 (rd & trap_compare((int)regs->gpr[ra], in analyse_instr()
1582 (int)regs->gpr[rb]))) in analyse_instr()
1587 if (rd & trap_compare(regs->gpr[ra], regs->gpr[rb])) in analyse_instr()
1633 val = regs->gpr[rd]; in analyse_instr()
1656 op->val = regs->gpr[rd]; in analyse_instr()
1667 val = regs->gpr[ra]; in analyse_instr()
1668 val2 = regs->gpr[rb]; in analyse_instr()
1680 val = regs->gpr[ra]; in analyse_instr()
1681 val2 = regs->gpr[rb]; in analyse_instr()
1693 do_cmpb(regs, op, regs->gpr[rd], regs->gpr[rb]); in analyse_instr()
1700 add_with_carry(regs, op, rd, ~regs->gpr[ra], in analyse_instr()
1701 regs->gpr[rb], 1); in analyse_instr()
1706 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1710 add_with_carry(regs, op, rd, regs->gpr[ra], in analyse_instr()
1711 regs->gpr[rb], 0); in analyse_instr()
1716 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1720 op->val = regs->gpr[rb] - regs->gpr[ra]; in analyse_instr()
1725 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1730 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1734 op->val = -regs->gpr[ra]; in analyse_instr()
1738 add_with_carry(regs, op, rd, ~regs->gpr[ra], in analyse_instr()
1739 regs->gpr[rb], regs->xer & XER_CA); in analyse_instr()
1743 add_with_carry(regs, op, rd, regs->gpr[ra], in analyse_instr()
1744 regs->gpr[rb], regs->xer & XER_CA); in analyse_instr()
1748 add_with_carry(regs, op, rd, ~regs->gpr[ra], 0L, in analyse_instr()
1753 add_with_carry(regs, op, rd, regs->gpr[ra], 0L, in analyse_instr()
1758 add_with_carry(regs, op, rd, ~regs->gpr[ra], -1L, in analyse_instr()
1763 op->val = regs->gpr[ra] * regs->gpr[rb]; in analyse_instr()
1767 add_with_carry(regs, op, rd, regs->gpr[ra], -1L, in analyse_instr()
1772 op->val = (long)(int) regs->gpr[ra] * in analyse_instr()
1773 (int) regs->gpr[rb]; in analyse_instr()
1780 op->val = regs->gpr[ra] % regs->gpr[rb]; in analyse_instr()
1784 op->val = regs->gpr[ra] + regs->gpr[rb]; in analyse_instr()
1790 op->val = (unsigned int) regs->gpr[ra] % in analyse_instr()
1791 (unsigned int) regs->gpr[rb]; in analyse_instr()
1795 op->val = regs->gpr[ra] / regs->gpr[rb]; in analyse_instr()
1799 op->val = (unsigned int) regs->gpr[ra] / in analyse_instr()
1800 (unsigned int) regs->gpr[rb]; in analyse_instr()
1804 op->val = (long int) regs->gpr[ra] / in analyse_instr()
1805 (long int) regs->gpr[rb]; in analyse_instr()
1809 op->val = (int) regs->gpr[ra] / in analyse_instr()
1810 (int) regs->gpr[rb]; in analyse_instr()
1815 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1816 "r" (regs->gpr[rb])); in analyse_instr()
1820 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1821 "r" (regs->gpr[rb])); in analyse_instr()
1849 op->val = (long int) regs->gpr[ra] % in analyse_instr()
1850 (long int) regs->gpr[rb]; in analyse_instr()
1856 op->val = (int) regs->gpr[ra] % in analyse_instr()
1857 (int) regs->gpr[rb]; in analyse_instr()
1865 val = (unsigned int) regs->gpr[rd]; in analyse_instr()
1870 val = regs->gpr[rd]; in analyse_instr()
1875 op->val = regs->gpr[rd] & regs->gpr[rb]; in analyse_instr()
1879 op->val = regs->gpr[rd] & ~regs->gpr[rb]; in analyse_instr()
1883 do_popcnt(regs, op, regs->gpr[rd], 8); in analyse_instr()
1887 op->val = ~(regs->gpr[rd] | regs->gpr[rb]); in analyse_instr()
1891 do_prty(regs, op, regs->gpr[rd], 32); in analyse_instr()
1895 do_prty(regs, op, regs->gpr[rd], 64); in analyse_instr()
1899 do_bpermd(regs, op, regs->gpr[rd], regs->gpr[rb]); in analyse_instr()
1903 op->val = ~(regs->gpr[rd] ^ regs->gpr[rb]); in analyse_instr()
1907 op->val = regs->gpr[rd] ^ regs->gpr[rb]; in analyse_instr()
1911 do_popcnt(regs, op, regs->gpr[rd], 32); in analyse_instr()
1915 op->val = regs->gpr[rd] | ~regs->gpr[rb]; in analyse_instr()
1919 op->val = regs->gpr[rd] | regs->gpr[rb]; in analyse_instr()
1923 op->val = ~(regs->gpr[rd] & regs->gpr[rb]); in analyse_instr()
1927 do_popcnt(regs, op, regs->gpr[rd], 64); in analyse_instr()
1933 val = (unsigned int) regs->gpr[rd]; in analyse_instr()
1940 val = regs->gpr[rd]; in analyse_instr()
1945 op->val = (signed short) regs->gpr[rd]; in analyse_instr()
1949 op->val = (signed char) regs->gpr[rd]; in analyse_instr()
1953 op->val = (signed int) regs->gpr[rd]; in analyse_instr()
1961 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
1963 op->val = (regs->gpr[rd] << sh) & 0xffffffffUL; in analyse_instr()
1969 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
1971 op->val = (regs->gpr[rd] & 0xffffffffUL) >> sh; in analyse_instr()
1978 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
1979 ival = (signed int) regs->gpr[rd]; in analyse_instr()
1992 ival = (signed int) regs->gpr[rd]; in analyse_instr()
2004 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2006 op->val = regs->gpr[rd] << sh; in analyse_instr()
2012 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2014 op->val = regs->gpr[rd] >> sh; in analyse_instr()
2021 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2022 ival = (signed long int) regs->gpr[rd]; in analyse_instr()
2036 ival = (signed long int) regs->gpr[rd]; in analyse_instr()
2052 val = (signed int) regs->gpr[rd]; in analyse_instr()
2105 op->val = regs->gpr[rd]; in analyse_instr()
2277 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2327 op->val = byterev_8(regs->gpr[rd]); in analyse_instr()
2337 op->val = byterev_4(regs->gpr[rd]); in analyse_instr()
2344 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2353 op->val = byterev_2(regs->gpr[rd]); in analyse_instr()
2386 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2387 nb = regs->gpr[rb] & 0xff; in analyse_instr()
2421 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2422 nb = regs->gpr[rb] & 0xff; in analyse_instr()
2741 op->val = regs->gpr[rd]; in analyse_instr()
2900 * below the kprobed function stack. So we only update gpr[1] but
2965 regs->gpr[op->reg] = op->val; in emulate_update_regs()
3004 regs->gpr[op->reg] = regs->xer & 0xffffffffUL; in emulate_update_regs()
3007 regs->gpr[op->reg] = regs->link; in emulate_update_regs()
3010 regs->gpr[op->reg] = regs->ctr; in emulate_update_regs()
3089 err = do_lqarx(ea, &regs->gpr[op->reg]); in emulate_loadstore()
3100 regs->gpr[op->reg] = val; in emulate_loadstore()
3126 err = do_stqcx(ea, regs->gpr[op->reg], in emulate_loadstore()
3127 regs->gpr[op->reg + 1], &cr); in emulate_loadstore()
3148 err = read_mem(&regs->gpr[op->reg], ea, size, regs); in emulate_loadstore()
3151 do_signext(&regs->gpr[op->reg], size); in emulate_loadstore()
3153 do_byterev(&regs->gpr[op->reg], size); in emulate_loadstore()
3208 regs->gpr[rd] = v32; in emulate_loadstore()
3225 ea >= regs->gpr[1] - STACK_INT_FRAME_SIZE) { in emulate_loadstore()
3269 unsigned int v32 = regs->gpr[rd]; in emulate_loadstore()
3293 regs->gpr[op->update_reg] = op->ea; in emulate_loadstore()
3365 regs->gpr[op.reg] = regs->msr & MSR_MASK; in emulate_step()
3369 val = regs->gpr[op.reg]; in emulate_step()
3386 regs->gpr[0] == 0x1ebe) { in emulate_step()
3390 regs->gpr[9] = regs->gpr[13]; in emulate_step()
3391 regs->gpr[10] = MSR_KERNEL; in emulate_step()
3392 regs->gpr[11] = regs->nip + 4; in emulate_step()
3393 regs->gpr[12] = regs->msr & MSR_MASK; in emulate_step()
3394 regs->gpr[13] = (unsigned long) get_paca(); in emulate_step()
3401 regs->gpr[9] = regs->gpr[13]; in emulate_step()
3402 regs->gpr[10] = MSR_KERNEL; in emulate_step()
3403 regs->gpr[11] = regs->nip + 4; in emulate_step()
3404 regs->gpr[12] = regs->msr & MSR_MASK; in emulate_step()
3405 regs->gpr[13] = (unsigned long) get_paca(); in emulate_step()