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>
Cc: 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 4/4] sim: mips: Add simulator support for mips32r6/mips64r6
Date: Wed, 12 Jan 2022 05:57:34 -0500	[thread overview]
Message-ID: <Yd60HoWnK+iHqO9Y@vapier> (raw)
In-Reply-To: <20220111212406.32312-5-Dragan.Mladjenovic@syrmia.com>

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

On 11 Jan 2022 22:24, Dragan Mladjenovic wrote:

i don't have substantial feedback on this since i'm not a MIPS expert

> +static sim_fpu_status
> +inner_fmac (int (*sim_fpu_op) (sim_fpu *, const sim_fpu *, const sim_fpu *),
> +	    uint64_t op1,
> +	    uint64_t op2,
> +	    uint64_t op3,
> +	    sim_fpu_round round,
> +	    sim_fpu_denorm denorm,
> +	    FP_formats fmt,
> +	    uint64_t *result)
> +{
> +  sim_fpu wop1, wop2, ans;
> +  sim_fpu_status status = 0;
> +  sim_fpu_status op_status;
> +  uint32_t t32 = 0;
> +  uint64_t t64 = 0;
> +
> +  switch (fmt)
> +  {

bad indentation on switch body.  some other funcs in this patch have the same
problem, so please go through it and double check.

> +    default:
> +      sim_io_eprintf (SD, "Bad switch\n");
> +      abort ();

when you have access to SD, you can use sim_io_error to do the msg+abort.
sim_io_error (SD, "%s: unaccounted switch", __func__);

if you have a sim_cpu, you can use CPU_STATE (cpu).
-mike

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

      reply	other threads:[~2022-01-12 10:57 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
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 [this message]

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=Yd60HoWnK+iHqO9Y@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).