All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>, qemu-devel@nongnu.org
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
	"Aurelien Jarno" <aurelien@aurel32.net>
Subject: Re: [PATCH-for-5.0] gdbstub: Introduce gdb_get_freg32() to get float32 registers
Date: Tue, 14 Apr 2020 08:19:49 -0700	[thread overview]
Message-ID: <420ba3eb-996a-6bab-7764-ebf91ab22917@linaro.org> (raw)
In-Reply-To: <20200414111846.27495-1-philmd@redhat.com>

On 4/14/20 4:18 AM, Philippe Mathieu-Daudé wrote:
> +static inline int gdb_get_freg32(GByteArray *array, float32 val)
> +{
> +    uint8_t buf[4];
> +
> +    QEMU_BUILD_BUG_ON(sizeof(CPU_FloatU) != sizeof(buf));

Why bother withe the BUG_ON when you could just put the sizeof(CPU_FloatU) into
the array bounds above?


r~


  reply	other threads:[~2020-04-14 16:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-14 11:18 [PATCH-for-5.0] gdbstub: Introduce gdb_get_freg32() to get float32 registers Philippe Mathieu-Daudé
2020-04-14 15:19 ` Richard Henderson [this message]
2020-04-14 15:22   ` Philippe Mathieu-Daudé

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=420ba3eb-996a-6bab-7764-ebf91ab22917@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=aurelien@aurel32.net \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.