mbox series

[v3,0/9] target/mips: Convert Loongson LEXT opcodes to decodetree

Message ID 20241026175349.84523-1-philmd@linaro.org
Headers show
Series target/mips: Convert Loongson LEXT opcodes to decodetree | expand

Message

Philippe Mathieu-Daudé Oct. 26, 2024, 5:53 p.m. UTC
Missing review: 1 & 9

Since v2:
- Extract decode_64bit_enabled()
- Remove unreachable 32-bit code

Since v1:
- Fixed '!is_double' check (rth)
- Rebased (removing tcg_temp_free calls)
- Simplified MULT[U].G (rth)
- Added R-b

Philippe Mathieu-Daudé (9):
  target/mips: Extract decode_64bit_enabled() helper
  target/mips: Simplify Loongson MULTU.G opcode
  target/mips: Re-introduce OPC_ADDUH_QB_DSP and OPC_MUL_PH_DSP
  target/mips: Convert Loongson DDIV.G opcodes to decodetree
  target/mips: Convert Loongson DIV.G opcodes to decodetree
  target/mips: Convert Loongson [D]DIVU.G opcodes to decodetree
  target/mips: Convert Loongson [D]MOD[U].G opcodes to decodetree
  target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree
  target/mips: Remove unreachable 32-bit code on 64-bit Loongson Ext

 target/mips/tcg/translate.h       |   3 +
 target/mips/tcg/godson2.decode    |  27 +++
 target/mips/tcg/loong-ext.decode  |  28 +++
 target/mips/tcg/loong_translate.c | 271 ++++++++++++++++++++++++++++++
 target/mips/tcg/translate.c       | 271 ++----------------------------
 target/mips/tcg/meson.build       |   3 +
 6 files changed, 348 insertions(+), 255 deletions(-)
 create mode 100644 target/mips/tcg/godson2.decode
 create mode 100644 target/mips/tcg/loong-ext.decode
 create mode 100644 target/mips/tcg/loong_translate.c

Comments

Philippe Mathieu-Daudé Oct. 26, 2024, 5:55 p.m. UTC | #1
On 26/10/24 14:53, Philippe Mathieu-Daudé wrote:

>   target/mips/tcg/translate.h       |   3 +
>   target/mips/tcg/godson2.decode    |  27 +++
>   target/mips/tcg/loong-ext.decode  |  28 +++
>   target/mips/tcg/loong_translate.c | 271 ++++++++++++++++++++++++++++++
>   target/mips/tcg/translate.c       | 271 ++----------------------------

Amusing diff-stat =)

>   target/mips/tcg/meson.build       |   3 +
>   6 files changed, 348 insertions(+), 255 deletions(-)
Philippe Mathieu-Daudé Oct. 31, 2024, 3:54 a.m. UTC | #2
On 26/10/24 14:53, Philippe Mathieu-Daudé wrote:

> Philippe Mathieu-Daudé (9):
>    target/mips: Extract decode_64bit_enabled() helper
>    target/mips: Simplify Loongson MULTU.G opcode
>    target/mips: Re-introduce OPC_ADDUH_QB_DSP and OPC_MUL_PH_DSP
>    target/mips: Convert Loongson DDIV.G opcodes to decodetree
>    target/mips: Convert Loongson DIV.G opcodes to decodetree
>    target/mips: Convert Loongson [D]DIVU.G opcodes to decodetree
>    target/mips: Convert Loongson [D]MOD[U].G opcodes to decodetree
>    target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree
>    target/mips: Remove unreachable 32-bit code on 64-bit Loongson Ext

Series queued.