• Home
  • Raw
  • Download

Lines Matching refs: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()
673 err = do_lq(ea, &regs->gpr[reg]); in emulate_lq()
675 err = read_mem(&regs->gpr[reg + IS_LE], ea, 8, regs); in emulate_lq()
677 err = read_mem(&regs->gpr[reg + IS_BE], ea + 8, 8, regs); in emulate_lq()
680 do_byte_reverse(&regs->gpr[reg], 16); in emulate_lq()
692 vals[0] = regs->gpr[reg]; in emulate_stq()
693 vals[1] = regs->gpr[reg + 1]; in emulate_stq()
1374 op->val = regs->gpr[rd]; in analyse_instr()
1390 if (rd & trap_compare(regs->gpr[ra], (short) word)) in analyse_instr()
1395 if (rd & trap_compare((int)regs->gpr[ra], (short) word)) in analyse_instr()
1412 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1413 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1418 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1419 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1424 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1425 "r" (regs->gpr[rb]), "r" (regs->gpr[rc])); in analyse_instr()
1437 op->val = regs->gpr[ra] * (short) word; in analyse_instr()
1442 add_with_carry(regs, op, rd, ~regs->gpr[ra], imm, 1); in analyse_instr()
1447 val = regs->gpr[ra]; in analyse_instr()
1457 val = regs->gpr[ra]; in analyse_instr()
1467 add_with_carry(regs, op, rd, regs->gpr[ra], imm, 0); in analyse_instr()
1472 add_with_carry(regs, op, rd, regs->gpr[ra], imm, 0); in analyse_instr()
1479 imm += regs->gpr[ra]; in analyse_instr()
1486 imm += regs->gpr[ra]; in analyse_instr()
1506 val = DATA32(regs->gpr[rd]); in analyse_instr()
1508 op->val = (regs->gpr[ra] & ~imm) | (ROTATE(val, rb) & imm); in analyse_instr()
1514 val = DATA32(regs->gpr[rd]); in analyse_instr()
1521 rb = regs->gpr[rb] & 0x1f; in analyse_instr()
1522 val = DATA32(regs->gpr[rd]); in analyse_instr()
1527 op->val = regs->gpr[rd] | (unsigned short) word; in analyse_instr()
1532 op->val = regs->gpr[rd] | (imm << 16); in analyse_instr()
1536 op->val = regs->gpr[rd] ^ (unsigned short) word; in analyse_instr()
1541 op->val = regs->gpr[rd] ^ (imm << 16); in analyse_instr()
1545 op->val = regs->gpr[rd] & (unsigned short) word; in analyse_instr()
1551 op->val = regs->gpr[rd] & (imm << 16); in analyse_instr()
1558 val = regs->gpr[rd]; in analyse_instr()
1574 val = (regs->gpr[ra] & ~imm) | in analyse_instr()
1580 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
1600 val2 = (ra) ? regs->gpr[ra] : 0; in analyse_instr()
1602 op->val = (val) ? val2 : regs->gpr[rb]; in analyse_instr()
1609 (rd & trap_compare((int)regs->gpr[ra], in analyse_instr()
1610 (int)regs->gpr[rb]))) in analyse_instr()
1615 if (rd & trap_compare(regs->gpr[ra], regs->gpr[rb])) in analyse_instr()
1661 val = regs->gpr[rd]; in analyse_instr()
1684 op->val = regs->gpr[rd]; in analyse_instr()
1695 val = regs->gpr[ra]; in analyse_instr()
1696 val2 = regs->gpr[rb]; in analyse_instr()
1708 val = regs->gpr[ra]; in analyse_instr()
1709 val2 = regs->gpr[rb]; in analyse_instr()
1721 do_cmpb(regs, op, regs->gpr[rd], regs->gpr[rb]); in analyse_instr()
1728 add_with_carry(regs, op, rd, ~regs->gpr[ra], in analyse_instr()
1729 regs->gpr[rb], 1); in analyse_instr()
1734 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1738 add_with_carry(regs, op, rd, regs->gpr[ra], in analyse_instr()
1739 regs->gpr[rb], 0); in analyse_instr()
1744 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1748 op->val = regs->gpr[rb] - regs->gpr[ra]; in analyse_instr()
1753 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1758 "r" (regs->gpr[ra]), "r" (regs->gpr[rb])); in analyse_instr()
1762 op->val = -regs->gpr[ra]; in analyse_instr()
1766 add_with_carry(regs, op, rd, ~regs->gpr[ra], in analyse_instr()
1767 regs->gpr[rb], regs->xer & XER_CA); in analyse_instr()
1771 add_with_carry(regs, op, rd, regs->gpr[ra], in analyse_instr()
1772 regs->gpr[rb], regs->xer & XER_CA); in analyse_instr()
1776 add_with_carry(regs, op, rd, ~regs->gpr[ra], 0L, in analyse_instr()
1781 add_with_carry(regs, op, rd, regs->gpr[ra], 0L, in analyse_instr()
1786 add_with_carry(regs, op, rd, ~regs->gpr[ra], -1L, in analyse_instr()
1791 op->val = regs->gpr[ra] * regs->gpr[rb]; in analyse_instr()
1795 add_with_carry(regs, op, rd, regs->gpr[ra], -1L, in analyse_instr()
1800 op->val = (long)(int) regs->gpr[ra] * in analyse_instr()
1801 (int) regs->gpr[rb]; in analyse_instr()
1808 op->val = regs->gpr[ra] % regs->gpr[rb]; in analyse_instr()
1812 op->val = regs->gpr[ra] + regs->gpr[rb]; in analyse_instr()
1818 op->val = (unsigned int) regs->gpr[ra] % in analyse_instr()
1819 (unsigned int) regs->gpr[rb]; in analyse_instr()
1823 op->val = regs->gpr[ra] / regs->gpr[rb]; in analyse_instr()
1827 op->val = (unsigned int) regs->gpr[ra] / in analyse_instr()
1828 (unsigned int) regs->gpr[rb]; in analyse_instr()
1832 op->val = (long int) regs->gpr[ra] / in analyse_instr()
1833 (long int) regs->gpr[rb]; in analyse_instr()
1837 op->val = (int) regs->gpr[ra] / in analyse_instr()
1838 (int) regs->gpr[rb]; in analyse_instr()
1843 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1844 "r" (regs->gpr[rb])); in analyse_instr()
1848 "=r" (op->val) : "r" (regs->gpr[ra]), in analyse_instr()
1849 "r" (regs->gpr[rb])); in analyse_instr()
1877 op->val = (long int) regs->gpr[ra] % in analyse_instr()
1878 (long int) regs->gpr[rb]; in analyse_instr()
1884 op->val = (int) regs->gpr[ra] % in analyse_instr()
1885 (int) regs->gpr[rb]; in analyse_instr()
1893 val = (unsigned int) regs->gpr[rd]; in analyse_instr()
1898 val = regs->gpr[rd]; 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], 8); in analyse_instr()
1915 op->val = ~(regs->gpr[rd] | regs->gpr[rb]); in analyse_instr()
1919 do_prty(regs, op, regs->gpr[rd], 32); in analyse_instr()
1923 do_prty(regs, op, regs->gpr[rd], 64); in analyse_instr()
1927 do_bpermd(regs, op, regs->gpr[rd], regs->gpr[rb]); in analyse_instr()
1931 op->val = ~(regs->gpr[rd] ^ regs->gpr[rb]); in analyse_instr()
1935 op->val = regs->gpr[rd] ^ regs->gpr[rb]; in analyse_instr()
1939 do_popcnt(regs, op, regs->gpr[rd], 32); in analyse_instr()
1943 op->val = regs->gpr[rd] | ~regs->gpr[rb]; in analyse_instr()
1947 op->val = regs->gpr[rd] | regs->gpr[rb]; in analyse_instr()
1951 op->val = ~(regs->gpr[rd] & regs->gpr[rb]); in analyse_instr()
1955 do_popcnt(regs, op, regs->gpr[rd], 64); in analyse_instr()
1961 val = (unsigned int) regs->gpr[rd]; in analyse_instr()
1968 val = regs->gpr[rd]; in analyse_instr()
1973 op->val = (signed short) regs->gpr[rd]; in analyse_instr()
1977 op->val = (signed char) regs->gpr[rd]; in analyse_instr()
1981 op->val = (signed int) regs->gpr[rd]; in analyse_instr()
1989 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
1991 op->val = (regs->gpr[rd] << sh) & 0xffffffffUL; in analyse_instr()
1997 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
1999 op->val = (regs->gpr[rd] & 0xffffffffUL) >> sh; in analyse_instr()
2006 sh = regs->gpr[rb] & 0x3f; in analyse_instr()
2007 ival = (signed int) regs->gpr[rd]; in analyse_instr()
2020 ival = (signed int) regs->gpr[rd]; in analyse_instr()
2032 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2034 op->val = regs->gpr[rd] << sh; in analyse_instr()
2040 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2042 op->val = regs->gpr[rd] >> sh; in analyse_instr()
2049 sh = regs->gpr[rb] & 0x7f; in analyse_instr()
2050 ival = (signed long int) regs->gpr[rd]; in analyse_instr()
2064 ival = (signed long int) regs->gpr[rd]; in analyse_instr()
2080 val = (signed int) regs->gpr[rd]; in analyse_instr()
2133 op->val = regs->gpr[rd]; in analyse_instr()
2305 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2355 op->val = byterev_8(regs->gpr[rd]); in analyse_instr()
2365 op->val = byterev_4(regs->gpr[rd]); in analyse_instr()
2372 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2381 op->val = byterev_2(regs->gpr[rd]); in analyse_instr()
2418 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2419 nb = regs->gpr[rb] & 0xff; in analyse_instr()
2459 op->ea = ra ? regs->gpr[ra] : 0; in analyse_instr()
2460 nb = regs->gpr[rb] & 0xff; in analyse_instr()
2810 op->val = regs->gpr[rd]; in analyse_instr()
3054 regs->gpr[op->reg] = op->val; in emulate_update_regs()
3095 regs->gpr[op->reg] = regs->xer & 0xffffffffUL; in emulate_update_regs()
3098 regs->gpr[op->reg] = regs->link; in emulate_update_regs()
3101 regs->gpr[op->reg] = regs->ctr; in emulate_update_regs()
3180 err = do_lqarx(ea, &regs->gpr[op->reg]); in emulate_loadstore()
3191 regs->gpr[op->reg] = val; in emulate_loadstore()
3217 err = do_stqcx(ea, regs->gpr[op->reg], in emulate_loadstore()
3218 regs->gpr[op->reg + 1], &cr); in emulate_loadstore()
3239 err = read_mem(&regs->gpr[op->reg], ea, size, regs); in emulate_loadstore()
3242 do_signext(&regs->gpr[op->reg], size); in emulate_loadstore()
3244 do_byterev(&regs->gpr[op->reg], size); in emulate_loadstore()
3299 regs->gpr[rd] = v32; in emulate_loadstore()
3316 ea >= regs->gpr[1] - STACK_INT_FRAME_SIZE) { in emulate_loadstore()
3360 unsigned int v32 = regs->gpr[rd]; in emulate_loadstore()
3384 regs->gpr[op->update_reg] = op->ea; in emulate_loadstore()
3456 regs->gpr[op.reg] = regs->msr & MSR_MASK; in emulate_step()
3460 val = regs->gpr[op.reg]; in emulate_step()
3477 regs->gpr[0] == 0x1ebe) { in emulate_step()
3481 regs->gpr[9] = regs->gpr[13]; in emulate_step()
3482 regs->gpr[10] = MSR_KERNEL; in emulate_step()
3483 regs->gpr[11] = regs->nip + 4; in emulate_step()
3484 regs->gpr[12] = regs->msr & MSR_MASK; in emulate_step()
3485 regs->gpr[13] = (unsigned long) get_paca(); in emulate_step()
3492 regs->gpr[9] = regs->gpr[13]; in emulate_step()
3493 regs->gpr[10] = MSR_KERNEL; in emulate_step()
3494 regs->gpr[11] = regs->nip + 4; in emulate_step()
3495 regs->gpr[12] = regs->msr & MSR_MASK; in emulate_step()
3496 regs->gpr[13] = (unsigned long) get_paca(); in emulate_step()