mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-09 23:05:37 +00:00
sparc: fix an compilation warning
This commit is contained in:
parent
99f3647d2e
commit
2a608c778e
|
@ -43,7 +43,8 @@ static int leon3_generic_hw_init(struct uc_struct *uc, MachineState *machine)
|
||||||
cpu_model = "LEON3";
|
cpu_model = "LEON3";
|
||||||
}
|
}
|
||||||
|
|
||||||
uc->cpu = cpu = cpu_sparc_init(uc, cpu_model);
|
cpu = cpu_sparc_init(uc, cpu_model);
|
||||||
|
uc->cpu = CPU(cpu);
|
||||||
if (cpu == NULL) {
|
if (cpu == NULL) {
|
||||||
fprintf(stderr, "qemu: Unable to find Sparc CPU definition\n");
|
fprintf(stderr, "qemu: Unable to find Sparc CPU definition\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue