From: Richard Henderson <richard.henderson@linaro.org>
To: "Matheus K. Ferst" <matheus.ferst@eldorado.org.br>,
Victor Colombo <victor.colombo@eldorado.org.br>,
qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: danielhb413@gmail.com, groug@kaod.org,
david@gibson.dropbear.id.au, clg@kaod.org
Subject: Re: [PATCH 4/4] target/ppc: move xscvqpdp to decodetree
Date: Sat, 11 Dec 2021 09:07:24 -0800 [thread overview]
Message-ID: <3173f0c9-d602-1d2c-e054-7082c51f91d4@linaro.org> (raw)
In-Reply-To: <8c0ebcd9-6fe8-005e-b9ac-e6f8b10c6839@eldorado.org.br>
On 12/10/21 8:19 AM, Matheus K. Ferst wrote:
> On 10/12/2021 11:13, Victor Colombo wrote:
>> From: Matheus Ferst <matheus.ferst@eldorado.org.br>
>>
>> Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
>> ---
>> target/ppc/fpu_helper.c | 10 +++-------
>> target/ppc/helper.h | 2 +-
>> target/ppc/insn32.decode | 4 ++++
>> target/ppc/translate/vsx-impl.c.inc | 24 +++++++++++++-----------
>> target/ppc/translate/vsx-ops.c.inc | 1 -
>> 5 files changed, 21 insertions(+), 20 deletions(-)
>
> <snip>
>
>> diff --git a/target/ppc/translate/vsx-impl.c.inc b/target/ppc/translate/vsx-impl.c.inc
>> index ab5cb21f13..f8669cae42 100644
>> --- a/target/ppc/translate/vsx-impl.c.inc
>> +++ b/target/ppc/translate/vsx-impl.c.inc
>> @@ -904,22 +904,24 @@ VSX_CMP(xvcmpgesp, 0x0C, 0x0A, 0, PPC2_VSX)
>> VSX_CMP(xvcmpgtsp, 0x0C, 0x09, 0, PPC2_VSX)
>> VSX_CMP(xvcmpnesp, 0x0C, 0x0B, 0, PPC2_VSX)
>> -static void gen_xscvqpdp(DisasContext *ctx)
>> +static bool trans_XSCVQPDP(DisasContext *ctx, arg_X_tb_rc *a)
>> {
>> - TCGv_i32 opc;
>> + TCGv_i32 ro;
>> TCGv_ptr xt, xb;
>> - if (unlikely(!ctx->vsx_enabled)) {
>> - gen_exception(ctx, POWERPC_EXCP_VSXU);
>> - return;
>> - }
>> - opc = tcg_const_i32(ctx->opcode);
>> - xt = gen_vsr_ptr(rD(ctx->opcode) + 32);
>> - xb = gen_vsr_ptr(rB(ctx->opcode) + 32);
>> - gen_helper_xscvqpdp(cpu_env, opc, xt, xb);
>> - tcg_temp_free_i32(opc);
>> + REQUIRE_INSNS_FLAGS2(ctx, ISA310);
>
> It's actually ISA300. We'll send a v2 fixing this.
Yep. With that,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
prev parent reply other threads:[~2021-12-11 17:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-10 14:13 [PATCH 0/4] target/ppc: Fix VSX instructions register access Victor Colombo
2021-12-10 14:13 ` [PATCH 1/4] target/ppc: Fix xs{max,min}[cj]dp to use VSX registers Victor Colombo
2021-12-11 17:02 ` Richard Henderson
2021-12-10 14:13 ` [PATCH 2/4] target/ppc: Move xs{max,min}[cj]dp to decodetree Victor Colombo
2021-12-11 17:03 ` Richard Henderson
2021-12-10 14:13 ` [PATCH 3/4] target/ppc: fix xscvqpdp register access Victor Colombo
2021-12-11 17:05 ` Richard Henderson
2021-12-10 14:13 ` [PATCH 4/4] target/ppc: move xscvqpdp to decodetree Victor Colombo
2021-12-10 16:19 ` Matheus K. Ferst
2021-12-11 17:07 ` Richard Henderson [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=3173f0c9-d602-1d2c-e054-7082c51f91d4@linaro.org \
--to=richard.henderson@linaro.org \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=matheus.ferst@eldorado.org.br \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=victor.colombo@eldorado.org.br \
/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).