Lines Matching refs:instword

878 static int emulate_string_inst(struct pt_regs *regs, u32 instword)  in emulate_string_inst()  argument
880 u8 rT = (instword >> 21) & 0x1f; in emulate_string_inst()
881 u8 rA = (instword >> 16) & 0x1f; in emulate_string_inst()
882 u8 NB_RB = (instword >> 11) & 0x1f; in emulate_string_inst()
888 if ((instword & PPC_INST_STRING_MASK) == PPC_INST_LSWX) in emulate_string_inst()
894 switch (instword & PPC_INST_STRING_MASK) { in emulate_string_inst()
917 switch ((instword & PPC_INST_STRING_MASK)) { in emulate_string_inst()
950 static int emulate_popcntb_inst(struct pt_regs *regs, u32 instword) in emulate_popcntb_inst() argument
955 ra = (instword >> 16) & 0x1f; in emulate_popcntb_inst()
956 rs = (instword >> 21) & 0x1f; in emulate_popcntb_inst()
967 static int emulate_isel(struct pt_regs *regs, u32 instword) in emulate_isel() argument
969 u8 rT = (instword >> 21) & 0x1f; in emulate_isel()
970 u8 rA = (instword >> 16) & 0x1f; in emulate_isel()
971 u8 rB = (instword >> 11) & 0x1f; in emulate_isel()
972 u8 BC = (instword >> 6) & 0x1f; in emulate_isel()
1008 u32 instword; in emulate_instruction() local
1015 if (get_user(instword, (u32 __user *)(regs->nip))) in emulate_instruction()
1019 if ((instword & PPC_INST_MFSPR_PVR_MASK) == PPC_INST_MFSPR_PVR) { in emulate_instruction()
1021 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1027 if ((instword & PPC_INST_DCBA_MASK) == PPC_INST_DCBA) { in emulate_instruction()
1033 if ((instword & PPC_INST_MCRXR_MASK) == PPC_INST_MCRXR) { in emulate_instruction()
1034 int shift = (instword >> 21) & 0x1c; in emulate_instruction()
1044 if ((instword & PPC_INST_STRING_GEN_MASK) == PPC_INST_STRING) { in emulate_instruction()
1049 return emulate_string_inst(regs, instword); in emulate_instruction()
1053 if ((instword & PPC_INST_POPCNTB_MASK) == PPC_INST_POPCNTB) { in emulate_instruction()
1055 return emulate_popcntb_inst(regs, instword); in emulate_instruction()
1059 if ((instword & PPC_INST_ISEL_MASK) == PPC_INST_ISEL) { in emulate_instruction()
1061 return emulate_isel(regs, instword); in emulate_instruction()
1065 if ((instword & PPC_INST_SYNC_MASK) == PPC_INST_SYNC) { in emulate_instruction()
1073 if ((((instword & PPC_INST_MFSPR_DSCR_USER_MASK) == in emulate_instruction()
1075 ((instword & PPC_INST_MFSPR_DSCR_MASK) == in emulate_instruction()
1079 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1084 if ((((instword & PPC_INST_MTSPR_DSCR_USER_MASK) == in emulate_instruction()
1086 ((instword & PPC_INST_MTSPR_DSCR_MASK) == in emulate_instruction()
1090 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1382 u32 instword, rd; in facility_unavailable_exception() local
1410 if (get_user(instword, (u32 __user *)(regs->nip))) { in facility_unavailable_exception()
1416 if ((instword & PPC_INST_MTSPR_DSCR_USER_MASK) in facility_unavailable_exception()
1418 rd = (instword >> 21) & 0x1f; in facility_unavailable_exception()
1425 if ((instword & PPC_INST_MFSPR_DSCR_USER_MASK) in facility_unavailable_exception()