Patchwork [for-1.4,03/19] target-ppc: Fix unused variable warning for FLUSH_ALL_TLBS

login
register
mail settings
Submitter Andreas Färber
Date Jan. 27, 2013, 1:32 p.m.
Message ID <1359293537-8251-4-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/215989/
State New
Headers show

Comments

Andreas Färber - Jan. 27, 2013, 1:32 p.m.
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 target-ppc/mmu_helper.c |    3 ++-
 1 Datei geändert, 2 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)
Alexander Graf - Jan. 30, 2013, 10:16 a.m.
On 27.01.2013, at 14:32, Andreas Färber wrote:

> Signed-off-by: Andreas Färber <afaerber@suse.de>

Thanks, applied to ppc-next.

Alex

> ---
> target-ppc/mmu_helper.c |    3 ++-
> 1 Datei geändert, 2 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)
> 
> diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c
> index 14fa25a..ee168f1 100644
> --- a/target-ppc/mmu_helper.c
> +++ b/target-ppc/mmu_helper.c
> @@ -2262,8 +2262,9 @@ void helper_store_601_batu(CPUPPCState *env, uint32_t nr, target_ulong value)
> 
> void helper_store_601_batl(CPUPPCState *env, uint32_t nr, target_ulong value)
> {
> +#if !defined(FLUSH_ALL_TLBS)
>     target_ulong mask;
> -#if defined(FLUSH_ALL_TLBS)
> +#else
>     int do_inval;
> #endif
> 
> -- 
> 1.7.10.4
>

Patch

diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c
index 14fa25a..ee168f1 100644
--- a/target-ppc/mmu_helper.c
+++ b/target-ppc/mmu_helper.c
@@ -2262,8 +2262,9 @@  void helper_store_601_batu(CPUPPCState *env, uint32_t nr, target_ulong value)
 
 void helper_store_601_batl(CPUPPCState *env, uint32_t nr, target_ulong value)
 {
+#if !defined(FLUSH_ALL_TLBS)
     target_ulong mask;
-#if defined(FLUSH_ALL_TLBS)
+#else
     int do_inval;
 #endif