Lines Matching refs:instword
1218 static int emulate_string_inst(struct pt_regs *regs, u32 instword) in emulate_string_inst() argument
1220 u8 rT = (instword >> 21) & 0x1f; in emulate_string_inst()
1221 u8 rA = (instword >> 16) & 0x1f; in emulate_string_inst()
1222 u8 NB_RB = (instword >> 11) & 0x1f; in emulate_string_inst()
1228 if ((instword & PPC_INST_STRING_MASK) == PPC_INST_LSWX) in emulate_string_inst()
1234 switch (instword & PPC_INST_STRING_MASK) { in emulate_string_inst()
1257 switch ((instword & PPC_INST_STRING_MASK)) { in emulate_string_inst()
1290 static int emulate_popcntb_inst(struct pt_regs *regs, u32 instword) in emulate_popcntb_inst() argument
1295 ra = (instword >> 16) & 0x1f; in emulate_popcntb_inst()
1296 rs = (instword >> 21) & 0x1f; in emulate_popcntb_inst()
1307 static int emulate_isel(struct pt_regs *regs, u32 instword) in emulate_isel() argument
1309 u8 rT = (instword >> 21) & 0x1f; in emulate_isel()
1310 u8 rA = (instword >> 16) & 0x1f; in emulate_isel()
1311 u8 rB = (instword >> 11) & 0x1f; in emulate_isel()
1312 u8 BC = (instword >> 6) & 0x1f; in emulate_isel()
1348 u32 instword; in emulate_instruction() local
1354 if (get_user(instword, (u32 __user *)(regs->nip))) in emulate_instruction()
1358 if ((instword & PPC_INST_MFSPR_PVR_MASK) == PPC_INST_MFSPR_PVR) { in emulate_instruction()
1360 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1366 if ((instword & PPC_INST_DCBA_MASK) == PPC_INST_DCBA) { in emulate_instruction()
1372 if ((instword & PPC_INST_MCRXR_MASK) == PPC_INST_MCRXR) { in emulate_instruction()
1373 int shift = (instword >> 21) & 0x1c; in emulate_instruction()
1383 if ((instword & PPC_INST_STRING_GEN_MASK) == PPC_INST_STRING) { in emulate_instruction()
1388 return emulate_string_inst(regs, instword); in emulate_instruction()
1392 if ((instword & PPC_INST_POPCNTB_MASK) == PPC_INST_POPCNTB) { in emulate_instruction()
1394 return emulate_popcntb_inst(regs, instword); in emulate_instruction()
1398 if ((instword & PPC_INST_ISEL_MASK) == PPC_INST_ISEL) { in emulate_instruction()
1400 return emulate_isel(regs, instword); in emulate_instruction()
1404 if ((instword & PPC_INST_SYNC_MASK) == PPC_INST_SYNC) { in emulate_instruction()
1412 if ((((instword & PPC_INST_MFSPR_DSCR_USER_MASK) == in emulate_instruction()
1414 ((instword & PPC_INST_MFSPR_DSCR_MASK) == in emulate_instruction()
1418 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1423 if ((((instword & PPC_INST_MTSPR_DSCR_USER_MASK) == in emulate_instruction()
1425 ((instword & PPC_INST_MTSPR_DSCR_MASK) == in emulate_instruction()
1429 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1727 u32 instword, rd; in DEFINE_INTERRUPT_HANDLER() local
1769 if (get_user(instword, (u32 __user *)(regs->nip))) { in DEFINE_INTERRUPT_HANDLER()
1775 if ((instword & PPC_INST_MTSPR_DSCR_USER_MASK) in DEFINE_INTERRUPT_HANDLER()
1777 rd = (instword >> 21) & 0x1f; in DEFINE_INTERRUPT_HANDLER()
1785 if ((instword & PPC_INST_MFSPR_DSCR_USER_MASK) in DEFINE_INTERRUPT_HANDLER()