From: Zhao Liu <zhao1.liu@intel.com>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel@nongnu.org, chang.seok.bae@intel.com,
Zhao Liu <zhao1.liu@intel.com>
Subject: Re: [PATCH 13/17] target/i386/tcg: add decode functionality for APX
Date: Mon, 28 Sep 2026 18:34:03 +0800 [thread overview]
Message-ID: <arpCm2czQxjKaPwi@intel.com> (raw)
In-Reply-To: <58073b08-9f64-400c-b8a2-acd0baa4add5@linaro.org>
On Thu, Sep 24, 2026 at 08:17:17AM -0700, Richard Henderson wrote:
> Date: Thu, 24 Sep 2026 08:17:17 -0700
> From: Richard Henderson <richard.henderson@linaro.org>
> Subject: Re: [PATCH 13/17] target/i386/tcg: add decode functionality for APX
>
> On 9/23/26 10:30, Paolo Bonzini wrote:
> > + case X86_EVEX_APX:
> > + case X86_EVEX_APX_cmp:
> > + case X86_EVEX_APX_pp2:
> > + case X86_EVEX_APX_zu:
> > + /* Only reached through EVEX map 4. */
> > + assert(!(s->prefix & PREFIX_VEX));
> > + if (s->vex_l) {
> > + goto illegal;
> > + }
> > + if ((s->prefix & PREFIX_EVEX) && !validate_evex_apx(s, decode)) {
> > + return false;
> > + }
>
> They're only reached by map4, so surely
>
> assert(s->prefix & PREFIX_EVEX);
>
> is more appropriate, and the subsequent test for evex moot.
I think the code comment is misleading (and assert seems right).
Not only evex map4, but also some legacy decoding reaches here, and
those legacy decoding share the decode helpers with evex map4, e.g.
decode_group1/decode_group3/decode_group4_5. And REX2 could also reach
here since it reuses legacy decoding table in decode_REX2_map0.
Maybe we can refine the commnet like:
/* EVEX map4/REX2/legacy all may reach here. Only VEX won't */
or we can drop that comment directly? :-)
Regards,
Zhao
next prev parent reply other threads:[~2026-09-28 10:34 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 17:30 [PATCH v2 00/17] target/i386/tcg: implement APX Paolo Bonzini
2026-09-23 17:30 ` [PATCH 01/17] target/i386/tcg: generalize zero- and sign-extension Paolo Bonzini
2026-09-23 19:34 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 02/17] target/i386/tcg: use standard operand order for BSF and BSR Paolo Bonzini
2026-09-23 19:36 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 03/17] target/i386/tcg: use zextT1 for CMPXCHG Paolo Bonzini
2026-09-23 19:36 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 04/17] target/i386/tcg: unify MOVBE and BSWAP generators Paolo Bonzini
2026-09-23 19:39 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 05/17] target/i386/tcg: add APX support to XSAVE/XRSTOR Paolo Bonzini
2026-09-23 17:30 ` [PATCH 06/17] target/i386/tcg: add definition for REX2 prefix Paolo Bonzini
2026-09-23 19:41 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 07/17] target/i386/tcg: mark XSAVE* as not allowing REX2 Paolo Bonzini
2026-09-23 19:42 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 08/17] target/i386/tcg: treat 0x0F as a prefix Paolo Bonzini
2026-09-23 19:51 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 09/17] target/i386/tcg: decode REX2 prefix Paolo Bonzini
2026-09-23 19:57 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 10/17] target/i386/tcg: implement JMPABS instruction Paolo Bonzini
2026-09-23 22:30 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 11/17] target/i386/tcg: extend VEX.vvvv parsing for APX Paolo Bonzini
2026-09-23 22:39 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 12/17] target/i386/tcg: decode EVEX prefix Paolo Bonzini
2026-09-23 23:28 ` Richard Henderson
2026-09-23 17:30 ` [PATCH 13/17] target/i386/tcg: add decode functionality for APX Paolo Bonzini
2026-09-24 15:17 ` Richard Henderson
2026-09-28 10:34 ` Zhao Liu [this message]
2026-09-28 12:16 ` Paolo Bonzini
2026-09-29 7:50 ` Richard Henderson
2026-09-29 8:08 ` Paolo Bonzini
2026-09-23 17:30 ` [PATCH 14/17] target/i386/tcg: implement CCMP/CTEST Paolo Bonzini
2026-09-23 17:30 ` [PATCH 15/17] target/i386/tcg: decode APX instructions Paolo Bonzini
2026-09-23 17:30 ` [PATCH 16/17] target/i386: extract computation of no-autoenable features Paolo Bonzini
2026-09-23 17:30 ` [PATCH 17/17] target/i386/tcg: mark APX as supported Paolo Bonzini
2026-09-28 10:57 ` [PATCH v2 00/17] target/i386/tcg: implement APX Zhao Liu
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=arpCm2czQxjKaPwi@intel.com \
--to=zhao1.liu@intel.com \
--cc=chang.seok.bae@intel.com \
--cc=pbonzini@redhat.com \
--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 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.