qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Zhao Liu <zhao1.liu@intel.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org,
	Richard Henderson <richard.henderson@linaro.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Eduardo Habkost <eduardo@habkost.net>
Subject: Re: [PATCH 2/4] target/i386: Use correct type for get_float_exception_flags() values
Date: Wed, 7 May 2025 21:12:51 +0800	[thread overview]
Message-ID: <aBtcU6c+UTyvbt13@intel.com> (raw)
In-Reply-To: <20250213142613.151308-3-peter.maydell@linaro.org>

On Thu, Feb 13, 2025 at 02:26:11PM +0000, Peter Maydell wrote:
> Date: Thu, 13 Feb 2025 14:26:11 +0000
> From: Peter Maydell <peter.maydell@linaro.org>
> Subject: [PATCH 2/4] target/i386: Use correct type for
>  get_float_exception_flags() values
> X-Mailer: git-send-email 2.43.0
> 
> The softfloat get_float_exception_flags() function returns 'int', but
> in various places in target/i386 we incorrectly store the returned
> value into a uint8_t.  This currently has no ill effects because i386
> doesn't care about any of the float_flag enum values above 0x40.
> However, we want to start using float_flag_input_denormal_used, which
> is 0x4000.
> 
> Switch to using 'int' so that we can handle all the possible valid
> float_flag_* values. This includes changing the return type of
> save_exception_flags() and the argument to merge_exception_flags().
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>  target/i386/ops_sse.h        | 16 +++----
>  target/i386/tcg/fpu_helper.c | 82 ++++++++++++++++++------------------
>  2 files changed, 49 insertions(+), 49 deletions(-)

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>



  parent reply	other threads:[~2025-05-07 12:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-13 14:26 [PATCH 0/4] target/i386: Emulate ftz and denormal flag bits correctly Peter Maydell
2025-02-13 14:26 ` [PATCH 1/4] target/i386: Detect flush-to-zero after rounding Peter Maydell
2025-05-07 13:10   ` Zhao Liu
2025-02-13 14:26 ` [PATCH 2/4] target/i386: Use correct type for get_float_exception_flags() values Peter Maydell
2025-02-13 15:18   ` Philippe Mathieu-Daudé
2025-05-07 13:12   ` Zhao Liu [this message]
2025-02-13 14:26 ` [PATCH 3/4] target/i386: Wire up MXCSR.DE and FPUS.DE correctly Peter Maydell
2025-05-08  3:48   ` Zhao Liu
2025-02-13 14:26 ` [PATCH 4/4] tests/tcg/x86_64/fma: add test for exact-denormal output Peter Maydell
2025-05-08  3:48   ` Zhao Liu
2025-02-24 14:47 ` [PATCH 0/4] target/i386: Emulate ftz and denormal flag bits correctly Peter Maydell
2025-03-07 10:38   ` Peter Maydell
2025-03-12 13:22     ` Peter Maydell
2025-04-29 12:30       ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aBtcU6c+UTyvbt13@intel.com \
    --to=zhao1.liu@intel.com \
    --cc=eduardo@habkost.net \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).