Patchwork [v2,01/15] target-ppc: Fix PPC_DUMP_SPR_ACCESS build

login
register
mail settings
Submitter Andreas Färber
Date Feb. 21, 2013, 4:24 a.m.
Message ID <1361420711-15698-2-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/222171/
State New
Headers show

Comments

Andreas Färber - Feb. 21, 2013, 4:24 a.m.
A victim of the d523dd00a7d73b28f2e99acf45a4b3f92e56e40a AREG0
conversion, insert the missing cpu_env arguments.

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 target-ppc/translate_init.c |    4 ++--
 1 Datei geändert, 2 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)
Alexander Graf - Feb. 25, 2013, 12:49 p.m.
On 21.02.2013, at 05:24, Andreas Färber wrote:

> A victim of the d523dd00a7d73b28f2e99acf45a4b3f92e56e40a AREG0
> conversion, insert the missing cpu_env arguments.
> 
> Cc: Blue Swirl <blauwirbel@gmail.com>
> Signed-off-by: Andreas Färber <afaerber@suse.de>

Thanks, applied to ppc-next.


Alex

> ---
> target-ppc/translate_init.c |    4 ++--
> 1 Datei geändert, 2 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)
> 
> diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
> index 5df2057..181bd99 100644
> --- a/target-ppc/translate_init.c
> +++ b/target-ppc/translate_init.c
> @@ -61,7 +61,7 @@ static void spr_load_dump_spr(int sprn)
> {
> #ifdef PPC_DUMP_SPR_ACCESSES
>     TCGv_i32 t0 = tcg_const_i32(sprn);
> -    gen_helper_load_dump_spr(t0);
> +    gen_helper_load_dump_spr(cpu_env, t0);
>     tcg_temp_free_i32(t0);
> #endif
> }
> @@ -76,7 +76,7 @@ static void spr_store_dump_spr(int sprn)
> {
> #ifdef PPC_DUMP_SPR_ACCESSES
>     TCGv_i32 t0 = tcg_const_i32(sprn);
> -    gen_helper_store_dump_spr(t0);
> +    gen_helper_store_dump_spr(cpu_env, t0);
>     tcg_temp_free_i32(t0);
> #endif
> }
> -- 
> 1.7.10.4
>

Patch

diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 5df2057..181bd99 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -61,7 +61,7 @@  static void spr_load_dump_spr(int sprn)
 {
 #ifdef PPC_DUMP_SPR_ACCESSES
     TCGv_i32 t0 = tcg_const_i32(sprn);
-    gen_helper_load_dump_spr(t0);
+    gen_helper_load_dump_spr(cpu_env, t0);
     tcg_temp_free_i32(t0);
 #endif
 }
@@ -76,7 +76,7 @@  static void spr_store_dump_spr(int sprn)
 {
 #ifdef PPC_DUMP_SPR_ACCESSES
     TCGv_i32 t0 = tcg_const_i32(sprn);
-    gen_helper_store_dump_spr(t0);
+    gen_helper_store_dump_spr(cpu_env, t0);
     tcg_temp_free_i32(t0);
 #endif
 }