public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: Dragan Mladjenovic <Dragan.Mladjenovic@syrmia.com>,
	gdb-patches@sourceware.org,
	"Maciej W . Rozycki" <macro@orcam.me.uk>,
	Chao-ying Fu <cfu@wavecomp.com>,
	Faraz Shahbazker <fshahbazker@wavecomp.com>
Subject: Re: [PATCH v3 1/4] sim: Allow toggling of quiet NaN-bit semantics
Date: Wed, 12 Jan 2022 05:44:58 -0500	[thread overview]
Message-ID: <Yd6xKiZokzlXS5z4@vapier> (raw)
In-Reply-To: <Yd6oC7lCe7lsdItb@vapier>

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

On 12 Jan 2022 05:06, Mike Frysinger via Gdb-patches wrote:
> On 11 Jan 2022 22:24, Dragan Mladjenovic wrote:
> > --- a/sim/common/sim-fpu.h
> > +++ b/sim/common/sim-fpu.h
> >  
> > +/* Toggle quiet NaN semantics.  */
> >  
> > +extern bool sim_fpu_quiet_nan_inverted;
> 
> please avoid global variables.  this should be part of sim_fpu state instead.

hrm, that doesn't work as sim_fpu is an operand ... i was thinking it was the
FPU state.  all the sim-fpu APIs today have been assuming stateless FPU which
doesn't really work after this (and the other changes you're posting).

please add a new sim_fpu_state structure that this would be a member of.  that
can be a global variable for now, but leave a TODO comment about moving it into
the SIM_CPU structure.
-mike

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-01-12 10:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-11 21:24 [PATCH v3 0/4] sim: Add support for MIPS32/64 revision 6 Dragan Mladjenovic
2022-01-11 21:24 ` [PATCH v3 1/4] sim: Allow toggling of quiet NaN-bit semantics Dragan Mladjenovic
2022-01-12 10:06   ` Mike Frysinger
2022-01-12 10:44     ` Mike Frysinger [this message]
2022-01-11 21:24 ` [PATCH v3 2/4] sim: Factor out NaN handling in floating point operations Dragan Mladjenovic
2022-01-12 10:22   ` Mike Frysinger
2022-01-11 21:24 ` [PATCH v3 3/4] sim: Add partial support for IEEE 754-2008 Dragan Mladjenovic
2022-01-12 10:47   ` Mike Frysinger
2022-01-11 21:24 ` [PATCH v3 4/4] sim: mips: Add simulator support for mips32r6/mips64r6 Dragan Mladjenovic
2022-01-12 10:57   ` Mike Frysinger

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=Yd6xKiZokzlXS5z4@vapier \
    --to=vapier@gentoo.org \
    --cc=Dragan.Mladjenovic@syrmia.com \
    --cc=cfu@wavecomp.com \
    --cc=fshahbazker@wavecomp.com \
    --cc=gdb-patches@sourceware.org \
    --cc=macro@orcam.me.uk \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).