Lines Matching refs:params
306 struct spu_elf_params *params; member
463 spu_elf_setup (struct bfd_link_info *info, struct spu_elf_params *params) in spu_elf_setup() argument
468 htab->params = params; in spu_elf_setup()
469 htab->line_size_log2 = bfd_log2 (htab->params->line_size); in spu_elf_setup()
470 htab->num_lines_log2 = bfd_log2 (htab->params->num_lines); in spu_elf_setup()
475 max_branch_log2 = bfd_log2 (htab->params->max_branch); in spu_elf_setup()
598 if (htab->params->emit_fixups) in spu_elf_create_sections()
673 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_find_overlays()
714 if ((s->vma - vma_start) & (htab->params->line_size - 1)) in spu_elf_find_overlays()
722 else if (s->size > htab->params->line_size) in spu_elf_find_overlays()
812 name = entry_names[i][htab->params->ovly_flavour]; in spu_elf_find_overlays()
1016 if ((!branch && htab->params->ovly_flavour == ovly_soft_icache) in needs_ovl_stub()
1024 && !htab->params->non_overlay_stubs) in needs_ovl_stub()
1047 && htab->params->ovly_flavour != ovly_soft_icache) in needs_ovl_stub()
1088 if (htab->params->ovly_flavour == ovly_soft_icache) in count_stub()
1149 ovl_stub_size (struct spu_elf_params *params) in ovl_stub_size() argument
1151 return 16 << params->ovly_flavour >> params->compact_stub; in ovl_stub_size()
1155 ovl_stub_size_log2 (struct spu_elf_params *params) in ovl_stub_size_log2() argument
1157 return 4 + params->ovly_flavour - params->compact_stub; in ovl_stub_size_log2()
1214 if (htab->params->ovly_flavour == ovly_soft_icache) in build_stub()
1258 if (htab->params->ovly_flavour == ovly_normal in build_stub()
1259 && !htab->params->compact_stub) in build_stub()
1274 else if (htab->params->ovly_flavour == ovly_normal in build_stub()
1275 && htab->params->compact_stub) in build_stub()
1286 else if (htab->params->ovly_flavour == ovly_soft_icache in build_stub()
1287 && htab->params->compact_stub) in build_stub()
1296 else if (!htab->params->lrlive_analysis) in build_stub()
1407 sec->size += ovl_stub_size (htab->params); in build_stub()
1409 if (htab->params->emit_stub_syms) in build_stub()
1447 h->size = ovl_stub_size (htab->params); in build_stub()
1481 || htab->params->non_overlay_stubs)) in allocate_spuear_stubs()
1506 || htab->params->non_overlay_stubs)) in build_spuear_stubs()
1679 ovl_stub_size_log2 (htab->params))) in spu_elf_size_stubs()
1681 stub->size = htab->stub_count[0] * ovl_stub_size (htab->params); in spu_elf_size_stubs()
1682 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_size_stubs()
1694 ovl_stub_size_log2 (htab->params))) in spu_elf_size_stubs()
1696 stub->size = htab->stub_count[ovl] * ovl_stub_size (htab->params); in spu_elf_size_stubs()
1700 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_size_stubs()
1773 (*htab->params->place_spu_section) (htab->stub_sec[0], NULL, ".text"); in spu_elf_place_overlay_data()
1779 (*htab->params->place_spu_section) (htab->stub_sec[ovl], osec, NULL); in spu_elf_place_overlay_data()
1783 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_place_overlay_data()
1784 (*htab->params->place_spu_section) (htab->init, NULL, ".ovl.init"); in spu_elf_place_overlay_data()
1789 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_place_overlay_data()
1791 (*htab->params->place_spu_section) (htab->ovtab, NULL, ovout); in spu_elf_place_overlay_data()
1795 (*htab->params->place_spu_section) (htab->toe, NULL, ".toe"); in spu_elf_place_overlay_data()
1985 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_build_stubs()
2161 bfd_vma hi = htab->params->local_store_hi; in spu_elf_check_vma()
2162 bfd_vma lo = htab->params->local_store_lo; in spu_elf_check_vma()
2765 if (call_tree && spu_hash_table (info)->params->auto_overlay) in mark_functions_via_relocs()
3300 if (!htab->params->auto_overlay in remove_cycles()
3301 && htab->params->stack_analysis) in remove_cycles()
3360 if (!spu_hash_table (info)->params->auto_overlay in build_call_tree()
3433 && (htab->params->ovly_flavour != ovly_soft_icache in mark_overlay_section()
3434 || htab->params->non_ia_text in mark_overlay_section()
3450 if (htab->params->auto_overlay & OVERLAY_RODATA) in mark_overlay_section()
3502 if (htab->params->line_size != 0 in mark_overlay_section()
3503 && size > htab->params->line_size) in mark_overlay_section()
3782 stub_size += ovl_stub_size (htab->params); in auto_ovl_lib_functions()
3800 lib_size += ovl_stub_size (htab->params); in auto_ovl_lib_functions()
3990 if (htab->params->auto_overlay) in sum_stack()
3994 if (htab->params->stack_analysis) in sum_stack()
4208 reserved = htab->params->auto_overlay_reserved; in spu_elf_auto_overlay()
4218 + htab->params->extra_stack_space); in spu_elf_auto_overlay()
4223 && htab->params->ovly_flavour != ovly_soft_icache) in spu_elf_auto_overlay()
4225 htab->params->auto_overlay = 0; in spu_elf_auto_overlay()
4234 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_auto_overlay()
4250 fixed_size += (*htab->params->spu_elf_load_ovl_mgr) (); in spu_elf_auto_overlay()
4336 fixed_size += htab->non_ovly_stub * ovl_stub_size (htab->params); in spu_elf_auto_overlay()
4339 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_auto_overlay()
4360 ovlynum = (total_overlay_size * 2 * htab->params->num_lines in spu_elf_auto_overlay()
4374 else if (fixed_size < htab->params->auto_overlay_fixed) in spu_elf_auto_overlay()
4379 if (max_fixed > htab->params->auto_overlay_fixed) in spu_elf_auto_overlay()
4380 max_fixed = htab->params->auto_overlay_fixed; in spu_elf_auto_overlay()
4402 overlay_size = (htab->local_store - fixed_size) / htab->params->num_lines; in spu_elf_auto_overlay()
4403 if (htab->params->line_size != 0) in spu_elf_auto_overlay()
4404 overlay_size = htab->params->line_size; in spu_elf_auto_overlay()
4498 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_auto_overlay()
4511 if (htab->params->ovly_flavour == ovly_soft_icache in spu_elf_auto_overlay()
4512 && num_stubs > htab->params->max_branch) in spu_elf_auto_overlay()
4515 + num_stubs * ovl_stub_size (htab->params) > overlay_size) in spu_elf_auto_overlay()
4543 script = htab->params->spu_elf_open_overlay_script (); in spu_elf_auto_overlay()
4545 if (htab->params->ovly_flavour == ovly_soft_icache) in spu_elf_auto_overlay()
4554 htab->params->line_size) <= 0) in spu_elf_auto_overlay()
4564 vma = (indx & (htab->params->num_lines - 1)) << htab->line_size_log2; in spu_elf_auto_overlay()
4601 for (region = 1; region <= htab->params->num_lines; region++) in spu_elf_auto_overlay()
4637 ovlynum += htab->params->num_lines; in spu_elf_auto_overlay()
4656 if (htab->params->auto_overlay & AUTO_RELINK) in spu_elf_auto_overlay()
4657 (*htab->params->spu_elf_relink) (); in spu_elf_auto_overlay()
4683 if (htab->params->stack_analysis) in spu_elf_stack_analysis()
4690 sum_stack_param.emit_stack_syms = htab->params->emit_stack_syms; in spu_elf_stack_analysis()
4695 if (htab->params->stack_analysis) in spu_elf_stack_analysis()
4708 if (htab->params->auto_overlay) in spu_elf_final_link()
4711 if ((htab->params->stack_analysis in spu_elf_final_link()
4712 || (htab->params->ovly_flavour == ovly_soft_icache in spu_elf_final_link()
4713 && htab->params->lrlive_analysis)) in spu_elf_final_link()
4954 if (htab->params->ovly_flavour == ovly_soft_icache in spu_elf_relocate_section()
4970 if (htab->params->ovly_flavour == ovly_soft_icache in spu_elf_relocate_section()
4984 if (htab->params->emit_fixups && !info->relocatable in spu_elf_relocate_section()
5140 if (htab->params->ovly_flavour == ovly_soft_icache in spu_elf_output_symbol_hook()
5337 && htab->params->ovly_flavour != ovly_soft_icache) in spu_elf_modify_program_headers()
5403 if (htab->params->emit_fixups) in spu_elf_size_sections()