[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific thre
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU |
Date: |
Sun, 30 Sep 2018 19:20:51 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
On 9/30/18 6:14 PM, Maciej W. Rozycki wrote:
> On Sun, 30 Sep 2018, Philippe Mathieu-Daudé wrote:
>
>>> + MIPS_INVAL("mul R5900");
>>
>> I'd use:
>>
>> MIPS_INVAL("mul/div Toshiba");
>
> But just like `gen_mul_vr54xx' this function doesn't handle division!
Per the commit message, I understood this function would eventually
handle "the R5900 specific pipeline 1 instruction variants MULT1,
MULTU1, DIV1, DIVU1, ..."
>
>>> @@ -22378,6 +22449,8 @@ static void decode_opc_special_legacy(CPUMIPSState
>>> *env, DisasContext *ctx)
>>> check_insn(ctx, INSN_VR54XX);
>>> op1 = MASK_MUL_VR54XX(ctx->opcode);
>>> gen_mul_vr54xx(ctx, op1, rd, rs, rt);
>>> + } else if (ctx->insn_flags & INSN_R5900) {
>>> + gen_mul_txxx(ctx, op1, 0, rd, rs, rt);
>>
>> Similarly, I'd name this gen_muldiv_txx9().
>
> Likewise. I agree with the `_txx9' suffix update, it makes sense to me.
Cool, thanks.
- [Qemu-devel] [PATCH v6 0/7] target/mips: Limited support for the R5900, Fredrik Noring, 2018/09/29
- [Qemu-devel] [PATCH v6 1/7] target/mips: Define R5900 instructions and CPU preprocessor constants, Fredrik Noring, 2018/09/29
- [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU, Fredrik Noring, 2018/09/29
- Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU, Philippe Mathieu-Daudé, 2018/09/30
- Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU, Maciej W. Rozycki, 2018/09/30
- Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU,
Philippe Mathieu-Daudé <=
- Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU, Maciej W. Rozycki, 2018/09/30
- Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU, Philippe Mathieu-Daudé, 2018/09/30
- Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU, Maciej W. Rozycki, 2018/09/30
- Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU, Philippe Mathieu-Daudé, 2018/09/30
- Re: [Qemu-devel] [PATCH v6 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU, Philippe Mathieu-Daudé, 2018/09/30
[Qemu-devel] [PATCH v6 5/7] target/mips: Define the R5900 CPU, Fredrik Noring, 2018/09/29
[Qemu-devel] [PATCH v6 4/7] target/mips: R5900 DMULT[U], DDIV[U], LL[D] and SC[D] are user only, Fredrik Noring, 2018/09/29
[Qemu-devel] [PATCH v6 3/7] target/mips: Support R5900 instructions MOVN, MOVZ and PREF from MIPS IV, Fredrik Noring, 2018/09/29