sparc: fix an compilation warning

This commit is contained in:
Nguyen Anh Quynh 2016-10-21 22:32:02 +08:00
parent 99f3647d2e
commit 2a608c778e
1 changed files with 2 additions and 1 deletions

View File

@ -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;