From: Blue Swirl Date: Wed, 30 May 2012 04:23:32 +0000 (+0000) Subject: ppc: Avoid a warning with the next patch X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~3973^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cc2cc085586cdb787a24d78a7ba032fa657275a;p=sdk%2Femulator%2Fqemu.git ppc: Avoid a warning with the next patch When the code is moved together by the next patch, compiler detects a possible uninitialized variable use. Avoid the warning by initializing the variables. Signed-off-by: Blue Swirl Signed-off-by: Alexander Graf Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c index 7bd6230..e79b8f2 100644 --- a/target-ppc/mmu_helper.c +++ b/target-ppc/mmu_helper.c @@ -89,7 +89,7 @@ void helper_store_slb(CPUPPCState *env, target_ulong rb, target_ulong rs) target_ulong helper_load_slb_esid(CPUPPCState *env, target_ulong rb) { - target_ulong rt; + target_ulong rt = 0; if (ppc_load_slb_esid(env, rb, &rt) < 0) { helper_raise_exception_err(env, POWERPC_EXCP_PROGRAM, @@ -100,7 +100,7 @@ target_ulong helper_load_slb_esid(CPUPPCState *env, target_ulong rb) target_ulong helper_load_slb_vsid(CPUPPCState *env, target_ulong rb) { - target_ulong rt; + target_ulong rt = 0; if (ppc_load_slb_vsid(env, rb, &rt) < 0) { helper_raise_exception_err(env, POWERPC_EXCP_PROGRAM,