Lines Matching refs:cfa

272 	cfi->cfa.base = CFI_UNDEFINED;  in init_cfi_state()
2197 state->cfa = initial_func_cfi.cfa; in set_func_state()
2200 state->stack_size = initial_func_cfi.cfa.offset; in set_func_state()
2280 if (arch_decode_hint_reg(hint->sp_reg, &cfi.cfa.base)) { in read_unwind_hints()
2285 cfi.cfa.offset = bswap_if_needed(file->elf, hint->sp_offset); in read_unwind_hints()
2673 if (cfi->cfa.base != initial_func_cfi.cfa.base || cfi->drap) in has_modified_stack_frame()
2676 if (cfi->cfa.offset != initial_func_cfi.cfa.offset) in has_modified_stack_frame()
2679 if (cfi->stack_size != initial_func_cfi.cfa.offset) in has_modified_stack_frame()
2702 if (cfi->cfa.base == CFI_BP && in has_valid_stack_frame()
2703 check_reg_frame_pos(&cfi->regs[CFI_BP], -cfi->cfa.offset) && in has_valid_stack_frame()
2704 check_reg_frame_pos(&cfi->regs[CFI_RA], -cfi->cfa.offset + 8)) in has_valid_stack_frame()
2717 struct cfi_reg *cfa = &cfi->cfa; in update_cfi_state_regs() local
2719 if (cfa->base != CFI_SP && cfa->base != CFI_SP_INDIRECT) in update_cfi_state_regs()
2724 cfa->offset += 8; in update_cfi_state_regs()
2728 cfa->offset -= 8; in update_cfi_state_regs()
2733 cfa->offset -= op->src.offset; in update_cfi_state_regs()
2810 struct cfi_reg *cfa = &cfi->cfa; in update_cfi_state() local
2818 if (cfa->base == CFI_UNDEFINED) { in update_cfi_state()
2837 cfa->base == CFI_SP && in update_cfi_state()
2838 check_reg_frame_pos(&regs[CFI_BP], -cfa->offset)) { in update_cfi_state()
2841 cfa->base = op->dest.reg; in update_cfi_state()
2854 else if (op->src.reg == CFI_SP && cfa->base == CFI_SP) { in update_cfi_state()
2871 (cfa->base == CFI_BP || cfa->base == cfi->drap_reg)) { in update_cfi_state()
2881 else if (op->dest.reg == cfa->base) { in update_cfi_state()
2884 if (cfa->base == CFI_SP && in update_cfi_state()
2895 cfa->offset = -cfi->vals[op->src.reg].offset; in update_cfi_state()
2896 cfi->stack_size = cfa->offset; in update_cfi_state()
2898 } else if (cfa->base == CFI_SP && in update_cfi_state()
2900 cfi->vals[op->src.reg].offset == cfa->offset) { in update_cfi_state()
2928 cfa->base = CFI_SP_INDIRECT; in update_cfi_state()
2931 cfa->base = CFI_UNDEFINED; in update_cfi_state()
2932 cfa->offset = 0; in update_cfi_state()
2938 cfi->vals[op->src.reg].offset == cfa->offset) { in update_cfi_state()
2957 if (cfa->base == CFI_SP) in update_cfi_state()
2958 cfa->offset -= op->src.offset; in update_cfi_state()
2969 if (op->src.reg == CFI_SP && cfa->base == CFI_SP) { in update_cfi_state()
2995 cfa->base = CFI_SP; in update_cfi_state()
2996 cfa->offset = cfi->stack_size = -op->src.offset; in update_cfi_state()
3002 if (op->dest.reg == cfi->cfa.base && !(next_insn && next_insn->hint)) { in update_cfi_state()
3011 (cfi->drap_reg != CFI_UNDEFINED && cfa->base != CFI_SP) || in update_cfi_state()
3012 (cfi->drap_reg == CFI_UNDEFINED && cfa->base != CFI_BP)) { in update_cfi_state()
3019 cfa->base = cfi->drap_reg; in update_cfi_state()
3020 cfa->offset = cfi->stack_size = 0; in update_cfi_state()
3033 if (op->dest.reg == CFI_SP && cfa->base == CFI_SP_INDIRECT) { in update_cfi_state()
3036 cfa->base = CFI_SP; in update_cfi_state()
3040 if (!cfi->drap && op->dest.reg == cfa->base) { in update_cfi_state()
3043 cfa->base = CFI_SP; in update_cfi_state()
3046 if (cfi->drap && cfa->base == CFI_BP_INDIRECT && in update_cfi_state()
3051 cfa->base = cfi->drap_reg; in update_cfi_state()
3052 cfa->offset = 0; in update_cfi_state()
3062 if (cfa->base == CFI_SP) in update_cfi_state()
3063 cfa->offset -= 8; in update_cfi_state()
3068 if (!cfi->drap && op->dest.reg == cfa->base && in update_cfi_state()
3072 cfa->base = CFI_SP; in update_cfi_state()
3073 cfa->offset = cfi->stack_size; in update_cfi_state()
3080 cfa->base = cfi->drap_reg; in update_cfi_state()
3081 cfa->offset = 0; in update_cfi_state()
3091 } else if (op->src.reg == cfa->base && in update_cfi_state()
3092 op->src.offset == regs[op->dest.reg].offset + cfa->offset) { in update_cfi_state()
3117 if (cfa->base == CFI_SP) in update_cfi_state()
3118 cfa->offset += 8; in update_cfi_state()
3124 if (op->src.reg == cfa->base && op->src.reg == cfi->drap_reg) { in update_cfi_state()
3127 cfa->base = CFI_BP_INDIRECT; in update_cfi_state()
3128 cfa->offset = -cfi->stack_size; in update_cfi_state()
3133 } else if (op->src.reg == CFI_BP && cfa->base == cfi->drap_reg) { in update_cfi_state()
3152 cfa->base != CFI_BP) in update_cfi_state()
3159 if (op->src.reg == cfa->base && op->src.reg == cfi->drap_reg) { in update_cfi_state()
3162 cfa->base = CFI_BP_INDIRECT; in update_cfi_state()
3163 cfa->offset = op->dest.offset; in update_cfi_state()
3173 } else if (op->dest.reg == cfa->base) { in update_cfi_state()
3178 op->dest.offset - cfi->cfa.offset); in update_cfi_state()
3190 cfi->vals[op->dest.reg].offset = cfa->offset; in update_cfi_state()
3203 if (cfa->base == CFI_SP) in update_cfi_state()
3204 cfa->offset -= 8; in update_cfi_state()
3305 if (memcmp(&cfi1->cfa, &cfi2->cfa, sizeof(cfi1->cfa))) { in insn_cfi_match()
3308 cfi1->cfa.base, cfi1->cfa.offset, in insn_cfi_match()
3309 cfi2->cfa.base, cfi2->cfa.offset); in insn_cfi_match()
3765 if (state.cfi.cfa.base == CFI_UNDEFINED) in validate_branch()