diff options
author | Blue Swirl | 2012-05-30 06:23:32 +0200 |
---|---|---|
committer | Alexander Graf | 2012-06-24 01:04:42 +0200 |
commit | 4cc2cc085586cdb787a24d78a7ba032fa657275a (patch) | |
tree | b85be7e7a7a8ba0e4fc9400b181cbcd717ca7706 /target-ppc/mmu_helper.c | |
parent | ppc: Avoid AREG0 for MMU etc. helpers (diff) | |
download | qemu-4cc2cc085586cdb787a24d78a7ba032fa657275a.tar.gz qemu-4cc2cc085586cdb787a24d78a7ba032fa657275a.tar.xz qemu-4cc2cc085586cdb787a24d78a7ba032fa657275a.zip |
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 <blauwirbel@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/mmu_helper.c')
-rw-r--r-- | target-ppc/mmu_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c index 7bd6230d08..e79b8f284f 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, |