No more hard-coded cpu models
This commit is contained in:
@@ -342,12 +342,12 @@ RISCVCPU *cpu_riscv_init(struct uc_struct *uc)
|
||||
|
||||
#ifdef TARGET_RISCV32
|
||||
if (uc->cpu_model == INT_MAX) {
|
||||
uc->cpu_model = 3;
|
||||
uc->cpu_model = UC_CPU_RISCV32_SIFIVE_U34;
|
||||
}
|
||||
#else
|
||||
/* TARGET_RISCV64 */
|
||||
if (uc->cpu_model == INT_MAX) {
|
||||
uc->cpu_model = 3;
|
||||
uc->cpu_model = UC_CPU_RISCV64_SIFIVE_U54;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user