[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: |
Richard Henderson |
Subject: |
Re: [PATCH V9 3/6] target/mips: Add loongson-ext lswc2 group of instructions (Part 1) |
Date: |
Wed, 16 Sep 2020 08:15:29 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
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.
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