target/mips: Convert Loongson DIV.G opcodes to decodetree
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 12 Jan 2021 19:08:32 +0000 (20:08 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 3 Nov 2024 08:52:49 +0000 (05:52 -0300)
commit297289dca84c7a6a945b1ce94df472b5a0b6cfea
tree30665e4be07e4aadd5a2eec34a930e57541aa10f
parent2cb2674698ec1227cf8a6d8fd28925b6fdd948a2
target/mips: Convert Loongson DIV.G opcodes to decodetree

DIV.G and DDIV.G are very similar. Provide gen_lext_DIV_G() a
'is_double' argument so it can generate DIV.G (divide 32-bit
signed integers).

With this commit we explicit the template used to generate
opcode for 32/64-bit word variants. Next commits will be less
verbose by providing both variants at once.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20241026175349.84523-6-philmd@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
target/mips/tcg/godson2.decode
target/mips/tcg/loong-ext.decode
target/mips/tcg/loong_translate.c
target/mips/tcg/translate.c