[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 12/72] ppc: Avoid a warning with the next patch
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 12/72] ppc: Avoid a warning with the next patch |
Date: |
Sun, 24 Jun 2012 01:06:36 +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>
Signed-off-by: Alexander Graf <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.6.0.2
- [Qemu-ppc] [PULL 00/72] ppc patch queue 2012-06-24, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 02/72] ppc: Split exception helpers, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 12/72] ppc: Avoid a warning with the next patch,
Alexander Graf <=
- [Qemu-ppc] [PATCH 21/72] ppc: Add missing break, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 15/72] ppc: Split off timebase helpers, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 22/72] ppc: Make hbrev table const, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 03/72] ppc: Avoid AREG0 for exception helpers, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 16/72] ppc: Avoid AREG0 for timebase helpers, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 05/72] ppc: Move exception helpers from helper.c to excp_helper.c, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 18/72] ppc: Avoid AREG0 for misc helpers, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 14/72] ppc: Cleanup MMU merge, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 09/72] ppc: Avoid AREG0 for integer and vector helpers, Alexander Graf, 2012/06/23
- [Qemu-ppc] [PATCH 19/72] ppc: Move misc helpers from helper.c to misc_helper.c, Alexander Graf, 2012/06/23