[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v4 12/23] ppc: Avoid a warning with the next patch
From: |
Andreas Färber |
Subject: |
[Qemu-ppc] [PATCH v4 12/23] ppc: Avoid a warning with the next patch |
Date: |
Wed, 30 May 2012 16:23:32 +0200 |
From: Blue Swirl <address@hidden>
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 <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
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 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,
--
1.7.7
- [Qemu-ppc] [PATCH v4 04/23] ppc: Fix coding style in helper.c, (continued)
- [Qemu-ppc] [PATCH v4 04/23] ppc: Fix coding style in helper.c, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 19/23] ppc: Move misc helpers from helper.c to misc_helper.c, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 18/23] ppc: Avoid AREG0 for misc helpers, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 03/23] ppc: Avoid AREG0 for exception helpers, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 21/23] ppc: Add missing break, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 11/23] ppc: Avoid AREG0 for MMU etc. helpers, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 15/23] ppc: Split off timebase helpers, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 14/23] ppc: Cleanup MMU merge, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 20/23] ppc: Move load and store helpers, switch to AREG0 free mode, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 23/23] target-ppc: Some support for dumping TLB_EMB TLBs, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 12/23] ppc: Avoid a warning with the next patch,
Andreas Färber <=
- [Qemu-ppc] [PATCH v4 05/23] ppc: Move exception helpers from helper.c to excp_helper.c, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 17/23] ppc: Split off misc helpers, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 16/23] ppc: Avoid AREG0 for timebase helpers, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 22/23] ppc: Make hbrev table const, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 07/23] ppc: Avoid AREG0 for FPU and SPE helpers, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 09/23] ppc: Avoid AREG0 for integer and vector helpers, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 10/23] ppc: Split MMU etc. helpers from op_helper.c, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 08/23] ppc: Split integer and vector ops, Andreas Färber, 2012/05/30
- [Qemu-ppc] [PATCH v4 06/23] ppc: Split FPU and SPE ops, Andreas Färber, 2012/05/30