[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 03/13] target/mips: Introduce decodetree helpers for MSA LSA/
From: |
Richard Henderson |
Subject: |
Re: [PATCH 03/13] target/mips: Introduce decodetree helpers for MSA LSA/DLSA opcodes |
Date: |
Tue, 8 Dec 2020 18:22:30 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 12/8/20 2:36 PM, Philippe Mathieu-Daudé wrote:
> /* ISA Extensions */
> +#if defined(TARGET_MIPS64)
> + if (ase_msa_available(env) && decode_msa64(ctx, ctx->opcode)) {
> + return;
> + }
> +#endif /* TARGET_MIPS64 */
> if (ase_msa_available(env) && decode_msa32(ctx, ctx->opcode)) {
> return;
> }
Can we reduce the number of ifdefs involved? Perhaps to zero?
if (ase_msa) {
if (TARGET_LONG_BITS == 64 && decode_msa64()) {
return;
}
if (decode_msa32()) {
return;
}
}
I realize this means extra decodetree invocations for mips32, but... does that
really matter?
I suppose some of the tcg expansions could not work for TCGv = TCGv_i32, which
wouldn't help the cause...
r~
- [PATCH 00/13] target/mips: Convert LSA/DLSA and part of the Rel6 removed opcodes, Philippe Mathieu-Daudé, 2020/12/08
- [PATCH 01/13] !fixup "target/mips/translate: Add declarations for generic code", Philippe Mathieu-Daudé, 2020/12/08
- [PATCH 02/13] target/mips: Extract LSA/DLSA translation generators, Philippe Mathieu-Daudé, 2020/12/08
- [PATCH 03/13] target/mips: Introduce decodetree helpers for MSA LSA/DLSA opcodes, Philippe Mathieu-Daudé, 2020/12/08
- [PATCH 04/13] target/mips: Introduce decodetree helpers for Release6 LSA/DLSA opcodes, Philippe Mathieu-Daudé, 2020/12/08
- [PATCH 05/13] target/mips: Remove now unreachable LSA/DLSA opcodes code, Philippe Mathieu-Daudé, 2020/12/08
- [PATCH 06/13] target/mips: Convert Rel6 Special2 opcode to decodetree, Philippe Mathieu-Daudé, 2020/12/08
- [PATCH 07/13] target/mips: Convert Rel6 COP1X opcode to decodetree, Philippe Mathieu-Daudé, 2020/12/08
- [PATCH 08/13] target/mips: Convert Rel6 CACHE/PREF opcodes to decodetree, Philippe Mathieu-Daudé, 2020/12/08