qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 for-10.0 32/54] target/sparc: Initialize local scratch flo


From: Richard Henderson
Subject: Re: [PATCH v2 for-10.0 32/54] target/sparc: Initialize local scratch float_status from env->fp_status
Date: Mon, 2 Dec 2024 11:24:31 -0600
User-agent: Mozilla Thunderbird

On 12/2/24 07:13, Peter Maydell wrote:
In the helper functions flcmps and flcmpd we use a scratch float_status
so that we don't change the CPU state if the comparison raises any
floating point exception flags. Instead of zero-initializing this
scratch float_status, initialize it as a copy of env->fp_status. This
avoids the need to explicitly initialize settings like the NaN
propagation rule or others we might add to softfloat in future.

To do this we need to pass the CPU env pointer in to the helper.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
  target/sparc/helper.h     | 4 ++--
  target/sparc/fop_helper.c | 8 ++++----
  target/sparc/translate.c  | 4 ++--
  3 files changed, 8 insertions(+), 8 deletions(-)

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

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]