]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/mips: Introduce ase_3d_available() helper
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 21 Oct 2024 14:33:19 +0000 (11:33 -0300)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 3 Nov 2024 08:52:49 +0000 (05:52 -0300)
commit09968fc96cee3d32e03b26b916bd6195f959c3d7
treee0c5d459319c6a9528795307e3d6c2c0dc8109fb
parent74665884a594a12c744eb7405015b2d2e8df4621
target/mips: Introduce ase_3d_available() helper

Determine if the MIPS-3D ASE is implemented by checking
the state of the 3D bit in the FIR CP1 control register.
Remove the then unused ASE_MIPS3D definition.

Note, this allows using MIPS-3D on the mips64dspr2 model.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241021145832.34920-1-philmd@linaro.org>
target/mips/cpu-defs.c.inc
target/mips/cpu.h
target/mips/mips-defs.h
target/mips/tcg/micromips_translate.c.inc
target/mips/tcg/translate.c