Remove hard-coded cpu model
This commit is contained in:
@ -258,8 +258,8 @@ S390CPU *cpu_s390_init(struct uc_struct *uc, const char *cpu_model)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (uc->cpu_model == INT_MAX) {
|
if (uc->cpu_model == INT_MAX) {
|
||||||
uc->cpu_model = 36; // qemu-s390x-cpu
|
uc->cpu_model = UC_CPU_S390X_QEMU; // qemu-s390x-cpu
|
||||||
} else if (uc->cpu_model >= 38) {
|
} else if (uc->cpu_model > UC_CPU_S390X_MAX) {
|
||||||
free(cpu);
|
free(cpu);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user