qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 6/8] tcg: Add INDEX_op_invalid
Date: Fri, 08 Sep 2017 10:30:43 +0100	[thread overview]
Message-ID: <8760ctilks.fsf@linaro.org> (raw)
In-Reply-To: <20170817230114.3655-7-richard.henderson@linaro.org>


Richard Henderson <richard.henderson@linaro.org> writes:

> Add with value 0 so that structure zero initialization can
> indicate that the field is not present.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

> ---
>  tcg/tcg-opc.h | 2 ++
>  tcg/tcg.c     | 3 +++
>  2 files changed, 5 insertions(+)
>
> diff --git a/tcg/tcg-opc.h b/tcg/tcg-opc.h
> index 9162125fac..b1445a4c24 100644
> --- a/tcg/tcg-opc.h
> +++ b/tcg/tcg-opc.h
> @@ -26,6 +26,8 @@
>   * DEF(name, oargs, iargs, cargs, flags)
>   */
>
> +DEF(invalid, 0, 0, 0, TCG_OPF_NOT_PRESENT)
> +
>  /* predefined ops */
>  DEF(discard, 1, 0, 0, TCG_OPF_NOT_PRESENT)
>  DEF(set_label, 0, 0, 1, TCG_OPF_BB_END | TCG_OPF_NOT_PRESENT)
> diff --git a/tcg/tcg.c b/tcg/tcg.c
> index 3c3cdda938..879b29e81f 100644
> --- a/tcg/tcg.c
> +++ b/tcg/tcg.c
> @@ -756,6 +756,9 @@ int tcg_check_temp_count(void)
>  bool tcg_op_supported(TCGOpcode op)
>  {
>      switch (op) {
> +    case INDEX_op_invalid:
> +        return false;
> +
>      case INDEX_op_discard:
>      case INDEX_op_set_label:
>      case INDEX_op_call:


--
Alex Bennée

  parent reply	other threads:[~2017-09-08  9:31 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-17 23:01 [Qemu-devel] [PATCH 0/8] TCG vectorization and example conversion Richard Henderson
2017-08-17 23:01 ` [Qemu-devel] [PATCH 1/8] tcg: Add generic vector infrastructure and ops for add/sub/logic Richard Henderson
2017-08-30  1:31   ` Philippe Mathieu-Daudé
2017-09-01 20:38     ` Richard Henderson
2017-09-07 16:34   ` Alex Bennée
2017-08-17 23:01 ` [Qemu-devel] [PATCH 2/8] target/arm: Use generic vector infrastructure for aa64 add/sub/logic Richard Henderson
2017-09-07 16:58   ` Alex Bennée
2017-09-10  1:43     ` Richard Henderson
2017-09-11  9:12       ` Alex Bennée
2017-09-11 18:09         ` Richard Henderson
2017-08-17 23:01 ` [Qemu-devel] [PATCH 3/8] tcg: Add types for host vectors Richard Henderson
2017-08-17 23:46   ` Philippe Mathieu-Daudé
2017-09-07 18:18   ` Alex Bennée
2017-08-17 23:01 ` [Qemu-devel] [PATCH 4/8] tcg: Add operations " Richard Henderson
2017-08-30  1:34   ` Philippe Mathieu-Daudé
2017-09-07 19:00   ` Alex Bennée
2017-09-07 19:02     ` Richard Henderson
2017-09-08  9:28       ` Alex Bennée
2017-08-17 23:01 ` [Qemu-devel] [PATCH 5/8] tcg: Add tcg_op_supported Richard Henderson
2017-08-17 23:44   ` Philippe Mathieu-Daudé
2017-09-07 19:02   ` Alex Bennée
2017-08-17 23:01 ` [Qemu-devel] [PATCH 6/8] tcg: Add INDEX_op_invalid Richard Henderson
2017-08-17 23:45   ` Philippe Mathieu-Daudé
2017-09-08  9:30   ` Alex Bennée [this message]
2017-08-17 23:01 ` [Qemu-devel] [PATCH 7/8] tcg: Expand target vector ops with host vector ops Richard Henderson
2017-09-08  9:34   ` Alex Bennée
2017-08-17 23:01 ` [Qemu-devel] [PATCH 8/8] tcg/i386: Add vector operations Richard Henderson
2017-08-22 13:15   ` Alex Bennée
2017-08-23 19:02     ` Richard Henderson
2017-09-08 10:13   ` Alex Bennée
2017-09-08 13:10     ` Alex Bennée
2017-09-10  2:44       ` Richard Henderson
2017-09-11  9:07         ` Alex Bennée
2017-09-12 13:52           ` Richard Henderson
2017-09-08 13:49 ` [Qemu-devel] [PATCH 0/8] TCG vectorization and example conversion Alex Bennée
2017-09-08 16:05   ` Richard Henderson

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=8760ctilks.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=qemu-arm@nongnu.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).