Lines Matching refs: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()
747 err = do_lq(ea, ®s->gpr[reg]); in emulate_lq()
749 err = read_mem(®s->gpr[reg + IS_LE], ea, 8, regs); in emulate_lq()
751 err = read_mem(®s->gpr[reg + IS_BE], ea + 8, 8, regs); in emulate_lq()
754 do_byte_reverse(®s->gpr[reg], 16); in emulate_lq()
766 vals[0] = regs->gpr[reg]; in emulate_stq()
767 vals[1] = regs->gpr[reg + 1]; in emulate_stq()
1499 op->val = regs->gpr[rd]; in analyse_instr()
1515 if (rd & trap_compare(regs->gpr[ra], (short) word)) in analyse_instr()
1520 if (rd & trap_compare((int)regs->gpr[ra], (short) word)) in analyse_instr()
1537 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1538 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1543 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1544 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1549 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1550 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1562 op->val = regs->gpr[ra] * (short) word; in analyse_instr()
1567 add_with_carry(regs, op, rd, ~regs->gpr[ra], imm, 1); in analyse_instr()
1572 val = regs->gpr[ra]; in analyse_instr()
1582 val = regs->gpr[ra]; in analyse_instr()
1592 add_with_carry(regs, op, rd, regs->gpr[ra], imm, 0); in analyse_instr()
1597 add_with_carry(regs, op, rd, regs->gpr[ra], imm, 0); in analyse_instr()
1604 imm += regs->gpr[ra]; in analyse_instr()
1611 imm += regs->gpr[ra]; in analyse_instr()
1631 val = DATA32(regs->gpr[rd]); in analyse_instr()
1633 op->val = (regs->gpr[ra] & ~imm) | (ROTATE(val, rb) & imm); in analyse_instr()
1639 val = DATA32(regs->gpr[rd]); in analyse_instr()
1646 rb = regs->gpr[rb] & 0x1f; in analyse_instr()
1647 val = DATA32(regs->gpr[rd]); in analyse_instr()
1652 op->val = regs->gpr[rd] | (unsigned short) word; in analyse_instr()
1657 op->val = regs->gpr[rd] | (imm << 16); in analyse_instr()
1661 op->val = regs->gpr[rd] ^ (unsigned short) word; in analyse_instr()
1666 op->val = regs->gpr[rd] ^ (imm << 16); in analyse_instr()
1670 op->val = regs->gpr[rd] & (unsigned short) word; in analyse_instr()
1676 op->val = regs->gpr[rd] & (imm << 16); in analyse_instr()
1683 val = regs->gpr[rd]; in analyse_instr()
1699 val = (regs->gpr[ra] & ~imm) | in analyse_instr()
1705 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
1725 val2 = (ra) ? regs->gpr[ra] : 0; in analyse_instr()
1727 op->val = (val) ? val2 : regs->gpr[rb]; in analyse_instr()
1734 (rd & trap_compare((int)regs->gpr[ra], in analyse_instr()
1735 (int)regs->gpr[rb]))) in analyse_instr()
1740 if (rd & trap_compare(regs->gpr[ra], regs->gpr[rb])) in analyse_instr()
1808 val = regs->gpr[rd]; in analyse_instr()
1831 op->val = regs->gpr[rd]; in analyse_instr()
1842 val = regs->gpr[ra]; in analyse_instr()
1843 val2 = regs->gpr[rb]; in analyse_instr()
1855 val = regs->gpr[ra]; in analyse_instr()
1856 val2 = regs->gpr[rb]; in analyse_instr()
1868 do_cmpb(regs, op, regs->gpr[rd], regs->gpr[rb]); in analyse_instr()
1875 add_with_carry(regs, op, rd, ~regs->gpr[ra], in analyse_instr()
1876 regs->gpr[rb], 1); in analyse_instr()
1881 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1885 add_with_carry(regs, op, rd, regs->gpr[ra], in analyse_instr()
1886 regs->gpr[rb], 0); in analyse_instr()
1891 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1895 op->val = regs->gpr[rb] - regs->gpr[ra]; in analyse_instr()
1900 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1905 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1909 op->val = -regs->gpr[ra]; in analyse_instr()
1913 add_with_carry(regs, op, rd, ~regs->gpr[ra], in analyse_instr()
1914 regs->gpr[rb], regs->xer & XER_CA); in analyse_instr()
1918 add_with_carry(regs, op, rd, regs->gpr[ra], in analyse_instr()
1919 regs->gpr[rb], regs->xer & XER_CA); in analyse_instr()
1923 add_with_carry(regs, op, rd, ~regs->gpr[ra], 0L, in analyse_instr()
1928 add_with_carry(regs, op, rd, regs->gpr[ra], 0L, in analyse_instr()
1933 add_with_carry(regs, op, rd, ~regs->gpr[ra], -1L, in analyse_instr()
1938 op->val = regs->gpr[ra] * regs->gpr[rb]; in analyse_instr()
1942 add_with_carry(regs, op, rd, regs->gpr[ra], -1L, in analyse_instr()
1947 op->val = (long)(int) regs->gpr[ra] * in analyse_instr()
1948 (int) regs->gpr[rb]; in analyse_instr()
1955 op->val = regs->gpr[ra] % regs->gpr[rb]; in analyse_instr()
1959 op->val = regs->gpr[ra] + regs->gpr[rb]; in analyse_instr()
1965 op->val = (unsigned int) regs->gpr[ra] % in analyse_instr()
1966 (unsigned int) regs->gpr[rb]; in analyse_instr()
1970 op->val = regs->gpr[ra] / regs->gpr[rb]; in analyse_instr()
1974 op->val = (unsigned int) regs->gpr[ra] / in analyse_instr()
1975 (unsigned int) regs->gpr[rb]; in analyse_instr()
1979 op->val = (long int) regs->gpr[ra] / in analyse_instr()
1980 (long int) regs->gpr[rb]; in analyse_instr()
1984 op->val = (int) regs->gpr[ra] / in analyse_instr()
1985 (int) regs->gpr[rb]; in analyse_instr()
1990 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1991 "r" (regs->gpr[rb])); in analyse_instr()
1995 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1996 "r" (regs->gpr[rb])); in analyse_instr()
2024 op->val = (long int) regs->gpr[ra] % in analyse_instr()
2025 (long int) regs->gpr[rb]; in analyse_instr()
2031 op->val = (int) regs->gpr[ra] % in analyse_instr()
2032 (int) regs->gpr[rb]; in analyse_instr()
2040 val = (unsigned int) regs->gpr[rd]; in analyse_instr()
2045 val = regs->gpr[rd]; in analyse_instr()
2050 op->val = regs->gpr[rd] & regs->gpr[rb]; in analyse_instr()
2054 op->val = regs->gpr[rd] & ~regs->gpr[rb]; in analyse_instr()
2058 do_popcnt(regs, op, regs->gpr[rd], 8); in analyse_instr()
2062 op->val = ~(regs->gpr[rd] | regs->gpr[rb]); in analyse_instr()
2066 do_prty(regs, op, regs->gpr[rd], 32); in analyse_instr()
2070 do_prty(regs, op, regs->gpr[rd], 64); in analyse_instr()
2074 do_bpermd(regs, op, regs->gpr[rd], regs->gpr[rb]); in analyse_instr()
2078 op->val = ~(regs->gpr[rd] ^ regs->gpr[rb]); in analyse_instr()
2082 op->val = regs->gpr[rd] ^ regs->gpr[rb]; in analyse_instr()
2086 do_popcnt(regs, op, regs->gpr[rd], 32); in analyse_instr()
2090 op->val = regs->gpr[rd] | ~regs->gpr[rb]; in analyse_instr()
2094 op->val = regs->gpr[rd] | regs->gpr[rb]; in analyse_instr()
2098 op->val = ~(regs->gpr[rd] & regs->gpr[rb]); in analyse_instr()
2102 do_popcnt(regs, op, regs->gpr[rd], 64); in analyse_instr()
2108 val = (unsigned int) regs->gpr[rd]; in analyse_instr()
2115 val = regs->gpr[rd]; in analyse_instr()
2120 op->val = (signed short) regs->gpr[rd]; in analyse_instr()
2124 op->val = (signed char) regs->gpr[rd]; in analyse_instr()
2128 op->val = (signed int) regs->gpr[rd]; in analyse_instr()
2136 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
2138 op->val = (regs->gpr[rd] << sh) & 0xffffffffUL; in analyse_instr()
2144 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
2146 op->val = (regs->gpr[rd] & 0xffffffffUL) >> sh; in analyse_instr()
2153 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
2154 ival = (signed int) regs->gpr[rd]; in analyse_instr()
2167 ival = (signed int) regs->gpr[rd]; in analyse_instr()
2179 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2181 op->val = regs->gpr[rd] << sh; in analyse_instr()
2187 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2189 op->val = regs->gpr[rd] >> sh; in analyse_instr()
2196 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2197 ival = (signed long int) regs->gpr[rd]; in analyse_instr()
2211 ival = (signed long int) regs->gpr[rd]; in analyse_instr()
2227 val = (signed int) regs->gpr[rd]; in analyse_instr()
2280 op->val = regs->gpr[rd]; in analyse_instr()
2453 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2503 op->val = byterev_8(regs->gpr[rd]); in analyse_instr()
2513 op->val = byterev_4(regs->gpr[rd]); in analyse_instr()
2520 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2529 op->val = byterev_2(regs->gpr[rd]); in analyse_instr()
2566 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2567 nb = regs->gpr[rb] & 0xff; in analyse_instr()
2615 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2616 nb = regs->gpr[rb] & 0xff; in analyse_instr()
2989 op->val = regs->gpr[rd]; in analyse_instr()
3238 regs->gpr[op->reg] = op->val; in emulate_update_regs()
3279 regs->gpr[op->reg] = regs->xer & 0xffffffffUL; in emulate_update_regs()
3282 regs->gpr[op->reg] = regs->link; in emulate_update_regs()
3285 regs->gpr[op->reg] = regs->ctr; in emulate_update_regs()
3364 err = do_lqarx(ea, ®s->gpr[op->reg]); in emulate_loadstore()
3375 regs->gpr[op->reg] = val; in emulate_loadstore()
3401 err = do_stqcx(ea, regs->gpr[op->reg], in emulate_loadstore()
3402 regs->gpr[op->reg + 1], &cr); in emulate_loadstore()
3423 err = read_mem(®s->gpr[op->reg], ea, size, regs); in emulate_loadstore()
3426 do_signext(®s->gpr[op->reg], size); in emulate_loadstore()
3428 do_byterev(®s->gpr[op->reg], size); in emulate_loadstore()
3483 regs->gpr[rd] = v32; in emulate_loadstore()
3499 ea >= regs->gpr[1] - STACK_INT_FRAME_SIZE) { in emulate_loadstore()
3543 unsigned int v32 = regs->gpr[rd]; in emulate_loadstore()
3567 regs->gpr[op->update_reg] = op->ea; in emulate_loadstore()
3639 regs->gpr[op.reg] = regs->msr & MSR_MASK; in emulate_step()
3643 val = regs->gpr[op.reg]; in emulate_step()