Skip to content

Commit

Permalink
ppc: Avoid a warning with the next patch
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
  • Loading branch information
blueswirl authored and agraf committed Jun 23, 2012
1 parent c6c7cf0 commit 4cc2cc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target-ppc/mmu_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 4cc2cc0

Please sign in to comment.