Home
last modified time | relevance | path

Searched refs:RV_REG_SP (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/arch/riscv/net/
Dbpf_jit_comp32.c155 emit(rv_lw(RV_REG_RA, stack_adjust - 4, RV_REG_SP), ctx); in __build_epilogue()
156 emit(rv_lw(RV_REG_FP, stack_adjust - 8, RV_REG_SP), ctx); in __build_epilogue()
157 emit(rv_lw(RV_REG_S1, stack_adjust - 12, RV_REG_SP), ctx); in __build_epilogue()
158 emit(rv_lw(RV_REG_S2, stack_adjust - 16, RV_REG_SP), ctx); in __build_epilogue()
159 emit(rv_lw(RV_REG_S3, stack_adjust - 20, RV_REG_SP), ctx); in __build_epilogue()
160 emit(rv_lw(RV_REG_S4, stack_adjust - 24, RV_REG_SP), ctx); in __build_epilogue()
161 emit(rv_lw(RV_REG_S5, stack_adjust - 28, RV_REG_SP), ctx); in __build_epilogue()
162 emit(rv_lw(RV_REG_S6, stack_adjust - 32, RV_REG_SP), ctx); in __build_epilogue()
163 emit(rv_lw(RV_REG_S7, stack_adjust - 36, RV_REG_SP), ctx); in __build_epilogue()
165 emit(rv_addi(RV_REG_SP, RV_REG_SP, stack_adjust), ctx); in __build_epilogue()
[all …]
Dbpf_jit_comp64.c187 emit_ld(RV_REG_RA, store_offset, RV_REG_SP, ctx); in __build_epilogue()
190 emit_ld(RV_REG_FP, store_offset, RV_REG_SP, ctx); in __build_epilogue()
193 emit_ld(RV_REG_S1, store_offset, RV_REG_SP, ctx); in __build_epilogue()
197 emit_ld(RV_REG_S2, store_offset, RV_REG_SP, ctx); in __build_epilogue()
201 emit_ld(RV_REG_S3, store_offset, RV_REG_SP, ctx); in __build_epilogue()
205 emit_ld(RV_REG_S4, store_offset, RV_REG_SP, ctx); in __build_epilogue()
209 emit_ld(RV_REG_S5, store_offset, RV_REG_SP, ctx); in __build_epilogue()
213 emit_ld(RV_REG_S6, store_offset, RV_REG_SP, ctx); in __build_epilogue()
217 emit_addi(RV_REG_SP, RV_REG_SP, stack_adjust, ctx); in __build_epilogue()
1279 emit_addi(RV_REG_SP, RV_REG_SP, -stack_adjust, ctx); in bpf_jit_build_prologue()
[all …]
Dbpf_jit.h24 RV_REG_SP = 2, /* Stack pointer */ enumerator
621 return rv_ci_insn(0x3, imm, RV_REG_SP, 0x1); in rvc_addi16sp()
902 if (rvc_enabled() && rd == RV_REG_SP && rd == rs && is_10b_int(imm) && imm && !(imm & 0xf)) in emit_addi()
904 else if (rvc_enabled() && is_creg(rd) && rs == RV_REG_SP && is_10b_uint(imm) && in emit_addi()
923 if (rvc_enabled() && rd && rd != RV_REG_SP && is_6b_int(imm) && imm) in emit_lui()
995 if (rvc_enabled() && rs1 == RV_REG_SP && rd && is_8b_uint(off) && !(off & 0x3)) in emit_lw()
1005 if (rvc_enabled() && rs1 == RV_REG_SP && is_8b_uint(off) && !(off & 0x3)) in emit_sw()
1026 if (rvc_enabled() && rs1 == RV_REG_SP && rd && is_9b_uint(off) && !(off & 0x7)) in emit_ld()
1036 if (rvc_enabled() && rs1 == RV_REG_SP && is_9b_uint(off) && !(off & 0x7)) in emit_sd()