Lines Matching full:gpr

132 		ea += regs->gpr[ra];  in dform_ea()
150 ea += regs->gpr[ra]; in dsform_ea()
167 ea += regs->gpr[ra]; in dqform_ea()
184 ea = regs->gpr[rb]; in xform_ea()
186 ea += regs->gpr[ra]; in xform_ea()
218 ea += regs->gpr[ra]; in mlsd_8lsd_ea()
737 err = do_lq(ea, &regs->gpr[reg]); in emulate_lq()
739 err = read_mem(&regs->gpr[reg + IS_LE], ea, 8, regs); in emulate_lq()
741 err = read_mem(&regs->gpr[reg + IS_BE], ea + 8, 8, regs); in emulate_lq()
744 do_byte_reverse(&regs->gpr[reg], 16); in emulate_lq()
756 vals[0] = regs->gpr[reg]; in emulate_stq()
757 vals[1] = regs->gpr[reg + 1]; in emulate_stq()
1489 op->val = regs->gpr[rd]; in analyse_instr()
1505 if (rd & trap_compare(regs->gpr[ra], (short) word)) in analyse_instr()
1510 if (rd & trap_compare((int)regs->gpr[ra], (short) word)) in analyse_instr()
1527 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1528 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1533 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1534 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1539 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1540 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1552 op->val = regs->gpr[ra] * (short) word; in analyse_instr()
1557 add_with_carry(regs, op, rd, ~regs->gpr[ra], imm, 1); in analyse_instr()
1562 val = regs->gpr[ra]; in analyse_instr()
1572 val = regs->gpr[ra]; in analyse_instr()
1582 add_with_carry(regs, op, rd, regs->gpr[ra], imm, 0); in analyse_instr()
1587 add_with_carry(regs, op, rd, regs->gpr[ra], imm, 0); in analyse_instr()
1594 imm += regs->gpr[ra]; in analyse_instr()
1601 imm += regs->gpr[ra]; in analyse_instr()
1621 val = DATA32(regs->gpr[rd]); in analyse_instr()
1623 op->val = (regs->gpr[ra] & ~imm) | (ROTATE(val, rb) & imm); in analyse_instr()
1629 val = DATA32(regs->gpr[rd]); in analyse_instr()
1636 rb = regs->gpr[rb] & 0x1f; in analyse_instr()
1637 val = DATA32(regs->gpr[rd]); in analyse_instr()
1642 op->val = regs->gpr[rd] | (unsigned short) word; in analyse_instr()
1647 op->val = regs->gpr[rd] | (imm << 16); in analyse_instr()
1651 op->val = regs->gpr[rd] ^ (unsigned short) word; in analyse_instr()
1656 op->val = regs->gpr[rd] ^ (imm << 16); in analyse_instr()
1660 op->val = regs->gpr[rd] & (unsigned short) word; in analyse_instr()
1666 op->val = regs->gpr[rd] & (imm << 16); in analyse_instr()
1673 val = regs->gpr[rd]; in analyse_instr()
1689 val = (regs->gpr[ra] & ~imm) | in analyse_instr()
1695 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
1715 val2 = (ra) ? regs->gpr[ra] : 0; in analyse_instr()
1717 op->val = (val) ? val2 : regs->gpr[rb]; in analyse_instr()
1724 (rd & trap_compare((int)regs->gpr[ra], in analyse_instr()
1725 (int)regs->gpr[rb]))) in analyse_instr()
1730 if (rd & trap_compare(regs->gpr[ra], regs->gpr[rb])) in analyse_instr()
1798 val = regs->gpr[rd]; in analyse_instr()
1821 op->val = regs->gpr[rd]; in analyse_instr()
1832 val = regs->gpr[ra]; in analyse_instr()
1833 val2 = regs->gpr[rb]; in analyse_instr()
1845 val = regs->gpr[ra]; in analyse_instr()
1846 val2 = regs->gpr[rb]; in analyse_instr()
1858 do_cmpb(regs, op, regs->gpr[rd], regs->gpr[rb]); in analyse_instr()
1865 add_with_carry(regs, op, rd, ~regs->gpr[ra], in analyse_instr()
1866 regs->gpr[rb], 1); in analyse_instr()
1871 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1875 add_with_carry(regs, op, rd, regs->gpr[ra], in analyse_instr()
1876 regs->gpr[rb], 0); in analyse_instr()
1881 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1885 op->val = regs->gpr[rb] - regs->gpr[ra]; in analyse_instr()
1890 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1895 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1899 op->val = -regs->gpr[ra]; in analyse_instr()
1903 add_with_carry(regs, op, rd, ~regs->gpr[ra], in analyse_instr()
1904 regs->gpr[rb], regs->xer & XER_CA); in analyse_instr()
1908 add_with_carry(regs, op, rd, regs->gpr[ra], in analyse_instr()
1909 regs->gpr[rb], regs->xer & XER_CA); in analyse_instr()
1913 add_with_carry(regs, op, rd, ~regs->gpr[ra], 0L, in analyse_instr()
1918 add_with_carry(regs, op, rd, regs->gpr[ra], 0L, in analyse_instr()
1923 add_with_carry(regs, op, rd, ~regs->gpr[ra], -1L, in analyse_instr()
1928 op->val = regs->gpr[ra] * regs->gpr[rb]; in analyse_instr()
1932 add_with_carry(regs, op, rd, regs->gpr[ra], -1L, in analyse_instr()
1937 op->val = (long)(int) regs->gpr[ra] * in analyse_instr()
1938 (int) regs->gpr[rb]; in analyse_instr()
1945 op->val = regs->gpr[ra] % regs->gpr[rb]; in analyse_instr()
1949 op->val = regs->gpr[ra] + regs->gpr[rb]; in analyse_instr()
1955 op->val = (unsigned int) regs->gpr[ra] % in analyse_instr()
1956 (unsigned int) regs->gpr[rb]; in analyse_instr()
1960 op->val = regs->gpr[ra] / regs->gpr[rb]; in analyse_instr()
1964 op->val = (unsigned int) regs->gpr[ra] / in analyse_instr()
1965 (unsigned int) regs->gpr[rb]; in analyse_instr()
1969 op->val = (long int) regs->gpr[ra] / in analyse_instr()
1970 (long int) regs->gpr[rb]; in analyse_instr()
1974 op->val = (int) regs->gpr[ra] / in analyse_instr()
1975 (int) regs->gpr[rb]; in analyse_instr()
1980 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1981 "r" (regs->gpr[rb])); in analyse_instr()
1985 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1986 "r" (regs->gpr[rb])); in analyse_instr()
2014 op->val = (long int) regs->gpr[ra] % in analyse_instr()
2015 (long int) regs->gpr[rb]; in analyse_instr()
2021 op->val = (int) regs->gpr[ra] % in analyse_instr()
2022 (int) regs->gpr[rb]; in analyse_instr()
2030 val = (unsigned int) regs->gpr[rd]; in analyse_instr()
2035 val = regs->gpr[rd]; in analyse_instr()
2040 op->val = regs->gpr[rd] & regs->gpr[rb]; in analyse_instr()
2044 op->val = regs->gpr[rd] & ~regs->gpr[rb]; in analyse_instr()
2048 do_popcnt(regs, op, regs->gpr[rd], 8); in analyse_instr()
2052 op->val = ~(regs->gpr[rd] | regs->gpr[rb]); in analyse_instr()
2056 do_prty(regs, op, regs->gpr[rd], 32); in analyse_instr()
2060 do_prty(regs, op, regs->gpr[rd], 64); in analyse_instr()
2064 do_bpermd(regs, op, regs->gpr[rd], regs->gpr[rb]); in analyse_instr()
2068 op->val = ~(regs->gpr[rd] ^ regs->gpr[rb]); in analyse_instr()
2072 op->val = regs->gpr[rd] ^ regs->gpr[rb]; in analyse_instr()
2076 do_popcnt(regs, op, regs->gpr[rd], 32); in analyse_instr()
2080 op->val = regs->gpr[rd] | ~regs->gpr[rb]; in analyse_instr()
2084 op->val = regs->gpr[rd] | regs->gpr[rb]; in analyse_instr()
2088 op->val = ~(regs->gpr[rd] & regs->gpr[rb]); in analyse_instr()
2092 do_popcnt(regs, op, regs->gpr[rd], 64); in analyse_instr()
2098 val = (unsigned int) regs->gpr[rd]; in analyse_instr()
2105 val = regs->gpr[rd]; in analyse_instr()
2110 op->val = (signed short) regs->gpr[rd]; in analyse_instr()
2114 op->val = (signed char) regs->gpr[rd]; in analyse_instr()
2118 op->val = (signed int) regs->gpr[rd]; in analyse_instr()
2126 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
2128 op->val = (regs->gpr[rd] << sh) & 0xffffffffUL; in analyse_instr()
2134 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
2136 op->val = (regs->gpr[rd] & 0xffffffffUL) >> sh; in analyse_instr()
2143 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
2144 ival = (signed int) regs->gpr[rd]; in analyse_instr()
2157 ival = (signed int) regs->gpr[rd]; in analyse_instr()
2169 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2171 op->val = regs->gpr[rd] << sh; in analyse_instr()
2177 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2179 op->val = regs->gpr[rd] >> sh; in analyse_instr()
2186 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2187 ival = (signed long int) regs->gpr[rd]; in analyse_instr()
2201 ival = (signed long int) regs->gpr[rd]; in analyse_instr()
2217 val = (signed int) regs->gpr[rd]; in analyse_instr()
2270 op->val = regs->gpr[rd]; in analyse_instr()
2442 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2492 op->val = byterev_8(regs->gpr[rd]); in analyse_instr()
2502 op->val = byterev_4(regs->gpr[rd]); in analyse_instr()
2509 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2518 op->val = byterev_2(regs->gpr[rd]); in analyse_instr()
2555 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2556 nb = regs->gpr[rb] & 0xff; in analyse_instr()
2604 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2605 nb = regs->gpr[rb] & 0xff; in analyse_instr()
2978 op->val = regs->gpr[rd]; in analyse_instr()
3171 * below the kprobed function stack. So we only update gpr[1] but
3227 regs->gpr[op->reg] = op->val; in emulate_update_regs()
3268 regs->gpr[op->reg] = regs->xer & 0xffffffffUL; in emulate_update_regs()
3271 regs->gpr[op->reg] = regs->link; in emulate_update_regs()
3274 regs->gpr[op->reg] = regs->ctr; in emulate_update_regs()
3353 err = do_lqarx(ea, &regs->gpr[op->reg]); in emulate_loadstore()
3364 regs->gpr[op->reg] = val; in emulate_loadstore()
3390 err = do_stqcx(ea, regs->gpr[op->reg], in emulate_loadstore()
3391 regs->gpr[op->reg + 1], &cr); in emulate_loadstore()
3412 err = read_mem(&regs->gpr[op->reg], ea, size, regs); in emulate_loadstore()
3415 do_signext(&regs->gpr[op->reg], size); in emulate_loadstore()
3417 do_byterev(&regs->gpr[op->reg], size); in emulate_loadstore()
3472 regs->gpr[rd] = v32; in emulate_loadstore()
3489 ea >= regs->gpr[1] - STACK_INT_FRAME_SIZE) { in emulate_loadstore()
3533 unsigned int v32 = regs->gpr[rd]; in emulate_loadstore()
3557 regs->gpr[op->update_reg] = op->ea; in emulate_loadstore()
3629 regs->gpr[op.reg] = regs->msr & MSR_MASK; in emulate_step()
3633 val = regs->gpr[op.reg]; in emulate_step()