[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V9 3/6] target/mips: Add loongson-ext lswc2 group of instruct
From: |
Huacai Chen |
Subject: |
Re: [PATCH V9 3/6] target/mips: Add loongson-ext lswc2 group of instructions (Part 1) |
Date: |
Sat, 19 Sep 2020 08:44:23 +0800 |
Hi, Richard,
On Wed, Sep 16, 2020 at 11:15 PM Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> On 9/15/20 7:12 PM, Huacai Chen wrote:
> > + case OPC_GSLQ:
> > + gen_base_offset_addr(ctx, t0, rs, lsq_offset);
> > + tcg_gen_qemu_ld_tl(t0, t0, ctx->mem_idx, MO_TEQ |
> > + ctx->default_tcg_memop_mask);
> > + gen_store_gpr(t0, rt);
> > + gen_base_offset_addr(ctx, t0, rs, lsq_offset + 8);
> > + tcg_gen_qemu_ld_tl(t0, t0, ctx->mem_idx, MO_TEQ |
> > + ctx->default_tcg_memop_mask);
> > + gen_store_gpr(t0, lsq_rt1);
>
> If rs == rt, this will compute the wrong address for the second load.
>
> Either avoid storing t0 back to rt until both loads are complete, or retain
> the
> address temporary and simply add 8 between the two loads.
OK, this will be improved in V10.
>
>
> r~
- [PATCH V9 0/6] mips: Add Loongson-3 machine support, Huacai Chen, 2020/09/15
- [PATCH V9 1/6] linux-headers: Update MIPS KVM type defintition, Huacai Chen, 2020/09/15
- [PATCH V9 2/6] target/mips: Fix PageMask with variable page size, Huacai Chen, 2020/09/15
- [PATCH V9 3/6] target/mips: Add loongson-ext lswc2 group of instructions (Part 1), Huacai Chen, 2020/09/15
- [PATCH V9 4/6] target/mips: Add loongson-ext lswc2 group of instructions (Part 2), Huacai Chen, 2020/09/15
- [PATCH V9 5/6] target/mips: Add loongson-ext lsdc2 group of instructions, Huacai Chen, 2020/09/15
- [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support, Huacai Chen, 2020/09/15
- Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support, Philippe Mathieu-Daudé, 2020/09/16
- Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support, Philippe Mathieu-Daudé, 2020/09/16
- Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support, Huacai Chen, 2020/09/16
- Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support, Philippe Mathieu-Daudé, 2020/09/16
- Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support, Philippe Mathieu-Daudé, 2020/09/17
- Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support, Huacai Chen, 2020/09/18
- Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support, Philippe Mathieu-Daudé, 2020/09/19