Support changing cpu model for ppc

This commit is contained in:
2021-11-04 19:53:02 +01:00
parent e5a2eae173
commit 0555095388
3 changed files with 259 additions and 251 deletions

View File

@@ -202,12 +202,12 @@ int ppc_context_reg_write(struct uc_context *ctx, unsigned int *regs,
return 0;
}
PowerPCCPU *cpu_ppc_init(struct uc_struct *uc, const char *cpu_model);
PowerPCCPU *cpu_ppc_init(struct uc_struct *uc);
static int ppc_cpus_init(struct uc_struct *uc, const char *cpu_model)
{
PowerPCCPU *cpu;
cpu = cpu_ppc_init(uc, cpu_model);
cpu = cpu_ppc_init(uc);
if (cpu == NULL) {
return -1;
}