Support changing cpu model for riscv

This commit is contained in:
2021-11-04 19:13:53 +01:00
parent 435ac71f47
commit 172a2fbe6d
2 changed files with 13 additions and 13 deletions

View File

@@ -10,7 +10,7 @@
#include <unicorn/riscv.h>
#include "unicorn.h"
RISCVCPU *cpu_riscv_init(struct uc_struct *uc, const char *cpu_model);
RISCVCPU *cpu_riscv_init(struct uc_struct *uc);
static void riscv_set_pc(struct uc_struct *uc, uint64_t address)
{
@@ -326,7 +326,7 @@ static int riscv_cpus_init(struct uc_struct *uc, const char *cpu_model)
RISCVCPU *cpu;
cpu = cpu_riscv_init(uc, cpu_model);
cpu = cpu_riscv_init(uc);
if (cpu == NULL) {
return -1;
}