diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-05-07 16:14:59 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-05-07 16:14:59 +0000 |
commit | 4450521668471c7685551d8c5bcc582d754e9843 (patch) | |
tree | f71e9188bdede5338873db4ef5e98a83ae3822a5 /target-sparc | |
parent | 2065061ede22d401aae2ce995c3af54db9d28639 (diff) |
sparc64: fix build with older gccs
Fix errors missed in 2065061ede22d401aae2ce995c3af54db9d28639:
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>
Diffstat (limited to 'target-sparc')
-rw-r--r-- | target-sparc/helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c index cac6cadcd0..0ba7c9ff13 100644 --- a/target-sparc/helper.c +++ b/target-sparc/helper.c @@ -444,6 +444,7 @@ static int get_physical_address_data(CPUState *env, context = env->dmmu.mmu_secondary_context & 0x1fff; break; case MMU_NUCLEUS_IDX: + default: context = 0; break; } |