Support changing cpu model for MIPS

This commit is contained in:
2021-11-04 19:05:56 +01:00
parent 94d952b410
commit 837c3be347
2 changed files with 16 additions and 19 deletions

View File

@@ -15,7 +15,7 @@ typedef uint64_t mipsreg_t;
typedef uint32_t mipsreg_t;
#endif
MIPSCPU *cpu_mips_init(struct uc_struct *uc, const char *cpu_model);
MIPSCPU *cpu_mips_init(struct uc_struct *uc);
static uint64_t mips_mem_redirect(uint64_t address)
{
@@ -226,7 +226,7 @@ static int mips_cpus_init(struct uc_struct *uc, const char *cpu_model)
{
MIPSCPU *cpu;
cpu = cpu_mips_init(uc, NULL);
cpu = cpu_mips_init(uc);
if (cpu == NULL) {
return -1;
}