[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 03/11] target-ppc: Add xsiexpdp instruction
From: |
Nikunj A Dadhania |
Subject: |
Re: [Qemu-ppc] [PATCH 03/11] target-ppc: Add xsiexpdp instruction |
Date: |
Thu, 12 Jan 2017 10:23:22 +0530 |
User-agent: |
Notmuch/0.21 (https://notmuchmail.org) Emacs/25.0.94.1 (x86_64-redhat-linux-gnu) |
David Gibson <address@hidden> writes:
> [ Unknown signature status ]
> On Tue, Jan 10, 2017 at 02:20:35PM +0530, Nikunj A Dadhania wrote:
>> xsiexpdp: VSX Scalar Insert Exponent Double Precision
>>
>> Signed-off-by: Nikunj A Dadhania <address@hidden>
>> ---
>> target/ppc/translate/vsx-impl.inc.c | 20 ++++++++++++++++++++
>> target/ppc/translate/vsx-ops.inc.c | 1 +
>> 2 files changed, 21 insertions(+)
>>
>> diff --git a/target/ppc/translate/vsx-impl.inc.c
>> b/target/ppc/translate/vsx-impl.inc.c
>> index 2d9fe50..2d09225 100644
>> --- a/target/ppc/translate/vsx-impl.inc.c
>> +++ b/target/ppc/translate/vsx-impl.inc.c
>> @@ -1243,6 +1243,26 @@ static void gen_xsxexpqp(DisasContext *ctx)
>> tcg_gen_movi_i64(xtl, 0);
>> }
>>
>> +static void gen_xsiexpdp(DisasContext *ctx)
>> +{
>> + TCGv_i64 xth = cpu_vsrh(xT(ctx->opcode));
>> + TCGv ra = cpu_gpr[rA(ctx->opcode)];
>> + TCGv rb = cpu_gpr[rB(ctx->opcode)];
>> + TCGv_i64 t0;
>> +
>> + if (unlikely(!ctx->vsx_enabled)) {
>> + gen_exception(ctx, POWERPC_EXCP_VSXU);
>> + return;
>> + }
>> + t0 = tcg_temp_new_i64();
>> + tcg_gen_andi_i64(xth, ra, 0x800FFFFFFFFFFFFF);
>> + tcg_gen_andi_i64(t0, rb, 0x7FF);
>> + tcg_gen_shli_i64(t0, t0, 52);
>> + tcg_gen_or_i64(xth, xth, t0);
>> + /* dword[1] is undefined */
>
> According to the ISA doc I have, dword[1] is set to 0 rather than
> being undefined.
Referring to xsiexpdp on page 570:
"The contents of doubleword element 1 of VSR[XT] are
undefined."
The revision that I have is dated November 30, 2015
Regards,
Nikunj
- [Qemu-ppc] [PATCH 00/11] POWER9 TCG enablements - part11, Nikunj A Dadhania, 2017/01/10
- [Qemu-ppc] [PATCH 04/11] target-ppc: Add xsiexpqp instruction, Nikunj A Dadhania, 2017/01/10
- [Qemu-ppc] [PATCH 06/11] target-ppc: Add xviexpdp instruction, Nikunj A Dadhania, 2017/01/10
- [Qemu-ppc] [PATCH 05/11] target-ppc: Add xviexpsp instruction, Nikunj A Dadhania, 2017/01/10
- [Qemu-ppc] [PATCH 07/11] target-ppc: Add xvxexpsp instruction, Nikunj A Dadhania, 2017/01/10
- [Qemu-ppc] [PATCH 09/11] target-ppc: Add xvxsigsp instruction, Nikunj A Dadhania, 2017/01/10
- [Qemu-ppc] [PATCH 08/11] target-ppc: Add xvxexpdp instruction, Nikunj A Dadhania, 2017/01/10
- [Qemu-ppc] [PATCH 10/11] target-ppc: Add xvxsigdp instruction, Nikunj A Dadhania, 2017/01/10
- [Qemu-ppc] [PATCH 11/11] target-ppc: Add xscvqps[d, w]z instructions, Nikunj A Dadhania, 2017/01/10
- Re: [Qemu-ppc] [PATCH 00/11] POWER9 TCG enablements - part11, David Gibson, 2017/01/11