No more hard-coded cpu models
This commit is contained in:
@@ -271,7 +271,7 @@ M68kCPU *cpu_m68k_init(struct uc_struct *uc)
|
||||
}
|
||||
|
||||
if (uc->cpu_model == INT_MAX) {
|
||||
uc->cpu_model = 7; // cfv4e
|
||||
uc->cpu_model = UC_CPU_M68K_CFV4E; // cfv4e
|
||||
} else if (uc->cpu_model >= ARRAY_SIZE(m68k_cpus_type_infos)) {
|
||||
free(cpu);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user