Lines Matching defs:insn
90 #define INSN_LEN(insn) ((((insn) & 0x3) < 0x3) ? 2 : 4) argument
123 #define RVC_RS1S(insn) (8 + RV_X(insn, SH_RD, 3)) argument
124 #define RVC_RS2S(insn) (8 + RV_X(insn, SH_RS2C, 3)) argument
125 #define RVC_RS2(insn) RV_X(insn, SH_RS2C, 5) argument
133 #define REG_OFFSET(insn, pos) \ argument
136 #define REG_PTR(insn, pos, regs) \ argument
139 #define GET_RS1(insn, regs) (*REG_PTR(insn, SH_RS1, regs)) argument
140 #define GET_RS2(insn, regs) (*REG_PTR(insn, SH_RS2, regs)) argument
141 #define GET_RS1S(insn, regs) (*REG_PTR(RVC_RS1S(insn), 0, regs)) argument
142 #define GET_RS2S(insn, regs) (*REG_PTR(RVC_RS2S(insn), 0, regs)) argument
143 #define GET_RS2C(insn, regs) (*REG_PTR(insn, SH_RS2C, regs)) argument
145 #define SET_RD(insn, regs, val) (*REG_PTR(insn, SH_RD, regs) = (val)) argument
146 #define IMM_I(insn) ((s32)(insn) >> 20) argument
147 #define IMM_S(insn) (((s32)(insn) >> 25 << 5) | \ argument
151 #define GET_PRECISION(insn) (((insn) >> 25) & 3) argument
152 #define GET_RM(insn) (((insn) >> 12) & 7) argument
158 #define FP_GET_RD(insn) (insn >> 7 & 0x1F) argument
162 static int set_f32_rd(unsigned long insn, struct pt_regs *regs, in set_f32_rd()
175 static int set_f64_rd(unsigned long insn, struct pt_regs *regs, u64 val) in set_f64_rd()
194 static u64 get_f64_rs(unsigned long insn, u8 fp_reg_offset, in get_f64_rs()
209 static unsigned long get_f64_rs(unsigned long insn, u8 fp_reg_offset, in get_f64_rs()
225 static unsigned long get_f32_rs(unsigned long insn, u8 fp_reg_offset, in get_f32_rs()
238 static void set_f32_rd(unsigned long insn, struct pt_regs *regs, in set_f32_rd()
241 static void set_f64_rd(unsigned long insn, struct pt_regs *regs, u64 val) {} in set_f64_rd()
243 static unsigned long get_f64_rs(unsigned long insn, u8 fp_reg_offset, in get_f64_rs()
249 static unsigned long get_f32_rs(unsigned long insn, u8 fp_reg_offset, in get_f32_rs()
257 #define GET_F64_RS2(insn, regs) (get_f64_rs(insn, 20, regs)) argument
258 #define GET_F64_RS2C(insn, regs) (get_f64_rs(insn, 2, regs)) argument
259 #define GET_F64_RS2S(insn, regs) (get_f64_rs(RVC_RS2S(insn), 0, regs)) argument
261 #define GET_F32_RS2(insn, regs) (get_f32_rs(insn, 20, regs)) argument
262 #define GET_F32_RS2C(insn, regs) (get_f32_rs(insn, 2, regs)) argument
263 #define GET_F32_RS2S(insn, regs) (get_f32_rs(RVC_RS2S(insn), 0, regs)) argument
265 #define __read_insn(regs, insn, insn_addr, type) \ argument
281 ulong insn = 0; in get_insn() local
332 unsigned long insn; in handle_misaligned_load() local
440 unsigned long insn; in handle_misaligned_store() local