Lines Matching refs:instword

1202 static int emulate_string_inst(struct pt_regs *regs, u32 instword)  in emulate_string_inst()  argument
1204 u8 rT = (instword >> 21) & 0x1f; in emulate_string_inst()
1205 u8 rA = (instword >> 16) & 0x1f; in emulate_string_inst()
1206 u8 NB_RB = (instword >> 11) & 0x1f; in emulate_string_inst()
1212 if ((instword & PPC_INST_STRING_MASK) == PPC_INST_LSWX) in emulate_string_inst()
1218 switch (instword & PPC_INST_STRING_MASK) { in emulate_string_inst()
1241 switch ((instword & PPC_INST_STRING_MASK)) { in emulate_string_inst()
1274 static int emulate_popcntb_inst(struct pt_regs *regs, u32 instword) in emulate_popcntb_inst() argument
1279 ra = (instword >> 16) & 0x1f; in emulate_popcntb_inst()
1280 rs = (instword >> 21) & 0x1f; in emulate_popcntb_inst()
1291 static int emulate_isel(struct pt_regs *regs, u32 instword) in emulate_isel() argument
1293 u8 rT = (instword >> 21) & 0x1f; in emulate_isel()
1294 u8 rA = (instword >> 16) & 0x1f; in emulate_isel()
1295 u8 rB = (instword >> 11) & 0x1f; in emulate_isel()
1296 u8 BC = (instword >> 6) & 0x1f; in emulate_isel()
1332 u32 instword; in emulate_instruction() local
1338 if (get_user(instword, (u32 __user *)(regs->nip))) in emulate_instruction()
1342 if ((instword & PPC_INST_MFSPR_PVR_MASK) == PPC_INST_MFSPR_PVR) { in emulate_instruction()
1344 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1350 if ((instword & PPC_INST_DCBA_MASK) == PPC_INST_DCBA) { in emulate_instruction()
1356 if ((instword & PPC_INST_MCRXR_MASK) == PPC_INST_MCRXR) { in emulate_instruction()
1357 int shift = (instword >> 21) & 0x1c; in emulate_instruction()
1367 if ((instword & PPC_INST_STRING_GEN_MASK) == PPC_INST_STRING) { in emulate_instruction()
1372 return emulate_string_inst(regs, instword); in emulate_instruction()
1376 if ((instword & PPC_INST_POPCNTB_MASK) == PPC_INST_POPCNTB) { in emulate_instruction()
1378 return emulate_popcntb_inst(regs, instword); in emulate_instruction()
1382 if ((instword & PPC_INST_ISEL_MASK) == PPC_INST_ISEL) { in emulate_instruction()
1384 return emulate_isel(regs, instword); in emulate_instruction()
1388 if ((instword & PPC_INST_SYNC_MASK) == PPC_INST_SYNC) { in emulate_instruction()
1396 if ((((instword & PPC_INST_MFSPR_DSCR_USER_MASK) == in emulate_instruction()
1398 ((instword & PPC_INST_MFSPR_DSCR_MASK) == in emulate_instruction()
1402 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1407 if ((((instword & PPC_INST_MTSPR_DSCR_USER_MASK) == in emulate_instruction()
1409 ((instword & PPC_INST_MTSPR_DSCR_MASK) == in emulate_instruction()
1413 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1711 u32 instword, rd; in DEFINE_INTERRUPT_HANDLER() local
1753 if (get_user(instword, (u32 __user *)(regs->nip))) { in DEFINE_INTERRUPT_HANDLER()
1759 if ((instword & PPC_INST_MTSPR_DSCR_USER_MASK) in DEFINE_INTERRUPT_HANDLER()
1761 rd = (instword >> 21) & 0x1f; in DEFINE_INTERRUPT_HANDLER()
1769 if ((instword & PPC_INST_MFSPR_DSCR_USER_MASK) in DEFINE_INTERRUPT_HANDLER()