Remove hard-coded cpu model

This commit is contained in:
mio 2021-12-30 00:54:55 +01:00
parent a72cbda6de
commit fdbd743c21
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -258,8 +258,8 @@ S390CPU *cpu_s390_init(struct uc_struct *uc, const char *cpu_model)
}
if (uc->cpu_model == INT_MAX) {
uc->cpu_model = 36; // qemu-s390x-cpu
} else if (uc->cpu_model >= 38) {
uc->cpu_model = UC_CPU_S390X_QEMU; // qemu-s390x-cpu
} else if (uc->cpu_model > UC_CPU_S390X_MAX) {
free(cpu);
return NULL;
}