Lines Matching refs:instword
1219 static int emulate_string_inst(struct pt_regs *regs, u32 instword) in emulate_string_inst() argument
1221 u8 rT = (instword >> 21) & 0x1f; in emulate_string_inst()
1222 u8 rA = (instword >> 16) & 0x1f; in emulate_string_inst()
1223 u8 NB_RB = (instword >> 11) & 0x1f; in emulate_string_inst()
1229 if ((instword & PPC_INST_STRING_MASK) == PPC_INST_LSWX) in emulate_string_inst()
1235 switch (instword & PPC_INST_STRING_MASK) { in emulate_string_inst()
1258 switch ((instword & PPC_INST_STRING_MASK)) { in emulate_string_inst()
1291 static int emulate_popcntb_inst(struct pt_regs *regs, u32 instword) in emulate_popcntb_inst() argument
1296 ra = (instword >> 16) & 0x1f; in emulate_popcntb_inst()
1297 rs = (instword >> 21) & 0x1f; in emulate_popcntb_inst()
1308 static int emulate_isel(struct pt_regs *regs, u32 instword) in emulate_isel() argument
1310 u8 rT = (instword >> 21) & 0x1f; in emulate_isel()
1311 u8 rA = (instword >> 16) & 0x1f; in emulate_isel()
1312 u8 rB = (instword >> 11) & 0x1f; in emulate_isel()
1313 u8 BC = (instword >> 6) & 0x1f; in emulate_isel()
1349 u32 instword; in emulate_instruction() local
1355 if (get_user(instword, (u32 __user *)(regs->nip))) in emulate_instruction()
1359 if ((instword & PPC_INST_MFSPR_PVR_MASK) == PPC_INST_MFSPR_PVR) { in emulate_instruction()
1361 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1367 if ((instword & PPC_INST_DCBA_MASK) == PPC_INST_DCBA) { in emulate_instruction()
1373 if ((instword & PPC_INST_MCRXR_MASK) == PPC_INST_MCRXR) { in emulate_instruction()
1374 int shift = (instword >> 21) & 0x1c; in emulate_instruction()
1384 if ((instword & PPC_INST_STRING_GEN_MASK) == PPC_INST_STRING) { in emulate_instruction()
1389 return emulate_string_inst(regs, instword); in emulate_instruction()
1393 if ((instword & PPC_INST_POPCNTB_MASK) == PPC_INST_POPCNTB) { in emulate_instruction()
1395 return emulate_popcntb_inst(regs, instword); in emulate_instruction()
1399 if ((instword & PPC_INST_ISEL_MASK) == PPC_INST_ISEL) { in emulate_instruction()
1401 return emulate_isel(regs, instword); in emulate_instruction()
1405 if ((instword & PPC_INST_SYNC_MASK) == PPC_INST_SYNC) { in emulate_instruction()
1413 if ((((instword & PPC_INST_MFSPR_DSCR_USER_MASK) == in emulate_instruction()
1415 ((instword & PPC_INST_MFSPR_DSCR_MASK) == in emulate_instruction()
1419 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1424 if ((((instword & PPC_INST_MTSPR_DSCR_USER_MASK) == in emulate_instruction()
1426 ((instword & PPC_INST_MTSPR_DSCR_MASK) == in emulate_instruction()
1430 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1757 u32 instword, rd; in DEFINE_INTERRUPT_HANDLER() local
1799 if (get_user(instword, (u32 __user *)(regs->nip))) { in DEFINE_INTERRUPT_HANDLER()
1805 if ((instword & PPC_INST_MTSPR_DSCR_USER_MASK) in DEFINE_INTERRUPT_HANDLER()
1807 rd = (instword >> 21) & 0x1f; in DEFINE_INTERRUPT_HANDLER()
1815 if ((instword & PPC_INST_MFSPR_DSCR_USER_MASK) in DEFINE_INTERRUPT_HANDLER()