From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGz6u-0004e0-08 for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGz6t-00068H-85 for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:48 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:43570) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGz6t-000681-1w for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:47 -0400 Received: by mail-pl0-x242.google.com with SMTP id a39-v6so2495925pla.10 for ; Thu, 10 May 2018 20:52:46 -0700 (PDT) From: Richard Henderson Date: Thu, 10 May 2018 20:52:33 -0700 Message-Id: <20180511035240.4016-3-richard.henderson@linaro.org> In-Reply-To: <20180511035240.4016-1-richard.henderson@linaro.org> References: <20180511035240.4016-1-richard.henderson@linaro.org> Subject: [Qemu-devel] [PATCH 2/9] target/mips: Honor CPU_DUMP_FPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Yongbok Kim Cc: Aurelien Jarno Cc: Yongbok Kim Signed-off-by: Richard Henderson --- 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) -- 2.17.0