mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 07:08:24 +00:00
sparc64: fix build with older gccs
Fix errors missed in 2065061ede
:
CC sparc64-softmmu/helper.o
cc1: warnings being treated as errors
/src/qemu/target-sparc/helper.c: In function 'get_physical_address':
/src/qemu/target-sparc/helper.c:426: warning: 'context' may be used uninitialized in this function
/src/qemu/target-sparc/helper.c:426: note: 'context' was declared here
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
2065061ede
commit
4450521668
@ -444,6 +444,7 @@ static int get_physical_address_data(CPUState *env,
|
|||||||
context = env->dmmu.mmu_secondary_context & 0x1fff;
|
context = env->dmmu.mmu_secondary_context & 0x1fff;
|
||||||
break;
|
break;
|
||||||
case MMU_NUCLEUS_IDX:
|
case MMU_NUCLEUS_IDX:
|
||||||
|
default:
|
||||||
context = 0;
|
context = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user