[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v3 03/10] target/ppc: support for 32-bit carry and
From: |
Nikunj A Dadhania |
Subject: |
Re: [Qemu-ppc] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow |
Date: |
Thu, 23 Feb 2017 12:32:44 +0530 |
User-agent: |
Notmuch/0.21 (https://notmuchmail.org) Emacs/25.0.94.1 (x86_64-redhat-linux-gnu) |
David Gibson <address@hidden> writes:
> -static void gen_read_xer(TCGv dst)
>> +static void gen_read_xer(DisasContext *ctx, TCGv dst)
>> {
>> TCGv t0 = tcg_temp_new();
>> TCGv t1 = tcg_temp_new();
>> @@ -3715,15 +3719,30 @@ static void gen_read_xer(TCGv dst)
>> tcg_gen_or_tl(t0, t0, t1);
>> tcg_gen_or_tl(dst, dst, t2);
>> tcg_gen_or_tl(dst, dst, t0);
>> + if (is_isa300(ctx)) {
>> + tcg_gen_shli_tl(t0, cpu_ov32, XER_OV32);
>> + tcg_gen_or_tl(dst, dst, t0);
>> + tcg_gen_shli_tl(t0, cpu_ca32, XER_CA32);
>> + tcg_gen_or_tl(dst, dst, t0);
>
> Could you use 2 deposits here, instead of 2 shifts and 2 ors?
I checked the implementation of tcg_gen_deposit_i64, resultant will have much
more than 2 shifts + 2 ors.
Regards,
Nikunj
- Re: [Qemu-ppc] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, (continued)
- Re: [Qemu-ppc] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, Nikunj A Dadhania, 2017/02/23
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, Richard Henderson, 2017/02/23
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, David Gibson, 2017/02/23
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, Nikunj Dadhania, 2017/02/23
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, David Gibson, 2017/02/24
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, Richard Henderson, 2017/02/24
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, David Gibson, 2017/02/26
Re: [Qemu-ppc] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, David Gibson, 2017/02/22
Re: [Qemu-ppc] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow,
Nikunj A Dadhania <=
Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, Richard Henderson, 2017/02/23
Re: [Qemu-ppc] [PATCH v3 03/10] target/ppc: support for 32-bit carry and overflow, David Gibson, 2017/02/23
[Qemu-ppc] [PATCH v3 02/10] target/ppc: optimize gen_write_xer(), Nikunj A Dadhania, 2017/02/22
[Qemu-ppc] [PATCH v3 04/10] target/ppc: update ca32 in arithmetic add, Nikunj A Dadhania, 2017/02/22
[Qemu-ppc] [PATCH v3 05/10] target/ppc: update ca32 in arithmetic substract, Nikunj A Dadhania, 2017/02/22
[Qemu-ppc] [PATCH v3 06/10] target/ppc: update overflow flags for add/sub, Nikunj A Dadhania, 2017/02/22