qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 03/11] softfloat: Introduce float_flag_inorm_denormal


From: Richard Henderson
Subject: Re: [PATCH 03/11] softfloat: Introduce float_flag_inorm_denormal
Date: Sat, 29 May 2021 08:21:19 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 5/28/21 10:41 AM, Michael Morrell wrote:
I'm probably missing something, but why do we need both "float_flag_inorm_denormal" and 
"float_flag_iflush_denormal"?

Couldn't the code that sets these flags set just a single flag for all denormal 
inputs and the code that checks these flags check that single flag
combined with the "flush_inputs_to_zero" flag to accomplish what the two separate 
"input denormal" flags do?

The thing that you're missing is that many guests leave the accumulated softfloat exceptions in the float_status structure until the guest FPSCR register is read. Unless the guest needs to raise an exception immediately, there's no reason to do otherwise.

With this setup, you have no temporal connection between "any denormal" and "flush-to-zero is set", thus two flags.


r~



reply via email to

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