diff mbox series

[2/9] target/mips: Honor CPU_DUMP_FPU

Message ID 20180511035240.4016-3-richard.henderson@linaro.org
State Superseded
Headers show
Series Honor CPU_DUMP_FPU | expand

Commit Message

Richard Henderson May 11, 2018, 3:52 a.m. UTC
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Yongbok Kim <yongbok.kim@mips.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 target/mips/translate.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.17.0

Comments

Philippe Mathieu-Daudé May 13, 2018, 12:49 a.m. UTC | #1
On 05/11/2018 12:52 AM, Richard Henderson wrote:
> Cc: Aurelien Jarno <aurelien@aurel32.net>

> Cc: Yongbok Kim <yongbok.kim@mips.com>

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


> ---

>  target/mips/translate.c | 3 ++-

>  1 file changed, 2 insertions(+), 1 deletion(-)

> 

> diff --git a/target/mips/translate.c b/target/mips/translate.c

> index d05ee67e63..136947adc5 100644

> --- a/target/mips/translate.c

> +++ b/target/mips/translate.c

> @@ -20445,8 +20445,9 @@ void mips_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,

>                  env->CP0_Config2, env->CP0_Config3);

>      cpu_fprintf(f, "    Config4 0x%08x Config5 0x%08x\n",

>                  env->CP0_Config4, env->CP0_Config5);

> -    if (env->hflags & MIPS_HFLAG_FPU)

> +    if ((flags & CPU_DUMP_FPU) && (env->hflags & MIPS_HFLAG_FPU)) {

>          fpu_dump_state(env, f, cpu_fprintf, flags);

> +    }

>  }

>  

>  void mips_tcg_init(void)

>
diff mbox series

Patch

diff --git a/target/mips/translate.c b/target/mips/translate.c
index d05ee67e63..136947adc5 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -20445,8 +20445,9 @@  void mips_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
                 env->CP0_Config2, env->CP0_Config3);
     cpu_fprintf(f, "    Config4 0x%08x Config5 0x%08x\n",
                 env->CP0_Config4, env->CP0_Config5);
-    if (env->hflags & MIPS_HFLAG_FPU)
+    if ((flags & CPU_DUMP_FPU) && (env->hflags & MIPS_HFLAG_FPU)) {
         fpu_dump_state(env, f, cpu_fprintf, flags);
+    }
 }
 
 void mips_tcg_init(void)