Esempio n. 1
0
void
initialize_all_arch ()
{
	int i;
	for (i = 0; i < MAX_SUPP_ARCH; i++) {
		skyeye_archs[i] = NULL;
	}
	/* register arm_arch */
	init_arm_arch ();

	/* register bfin_arch */
	init_bfin_arch ();

	/* register mips_arch */
	init_mips_arch ();

	/* register coldfire_arch */
	init_coldfire_arch ();

	/* register ppc_arch */
	init_ppc_arch();

	/* register sparc_arch */
	init_sparc_arch();
}
Esempio n. 2
0
void module_init(){
	/* register the arm core to the common library */
	init_arm_arch ();
#ifdef LLVM_EXIST
	printf("arm LLVM EXIST \n");
	init_arm_dyncom ();
#else
	printf("arm Don't have LLVM\n");
#endif
	/*
	 * register all the supported mach to the common library.
	 */
	int i = 0;
	while(arm_machines[i].machine_name != NULL){
		register_mach(arm_machines[i].machine_name, arm_machines[i].mach_init);
		i++;
	}

	if(register_option("cpu", do_cpu_option, "Processor option for arm architecture.") != No_exp)
                fprintf(stderr,"Can not register cpu option\n");
}