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";
|
||||
}
|
||||
|
||||
uc->cpu = cpu = cpu_sparc_init(uc, cpu_model);
|
||||
cpu = cpu_sparc_init(uc, cpu_model);
|
||||
uc->cpu = CPU(cpu);
|
||||
if (cpu == NULL) {
|
||||
fprintf(stderr, "qemu: Unable to find Sparc CPU definition\n");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue