Skip to content

target/mips: Finalise the Ingenic MXU ASE support

Siarhei Volkau qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest33 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33target/mips: Add emulation of MXU instructions for 32-bit load/storetarget/mips/tcg/mxu_translate.c+279 -230 replies
2/33Add support of two XBurst CPUstarget/mips/cpu-defs.c.inc+46 -00 replies
3/33target/mips: Add emulation of LXW LXB LXH LXBU LXHU instructionstarget/mips/tcg/mxu_translate.c+82 -10 replies
4/33target/mips: Add emulation of S32MADD/MADDU/MSUB/MSUBU instructionstarget/mips/tcg/mxu_translate.c target/mips/tcg/translate.c+105 -70 replies
5/33target/mips: Add emulation of Q8SLT Q8SLTU instructionstarget/mips/tcg/mxu_translate.c+65 -00 replies
6/33target/mips: fix MXU D16MAX D16MIN Q8MAX Q8MIN instructionstarget/mips/tcg/mxu_translate.c+18 -120 replies
7/33target/mips: Add emulation of MXU S32SLT D16SLT D16AVG[R] Q8AVG[R] insnstarget/mips/tcg/mxu_translate.c+243 -10 replies
8/33target/mips: Add emulation of Q8ADD instructiontarget/mips/tcg/mxu_translate.c+77 -00 replies
9/33target/mips: Add emulation of MXU S32CPS D16CPS Q8ABD Q16SAT insnstarget/mips/tcg/mxu_translate.c+293 -30 replies
10/33target/mips: Add emulation of MXU D16MULF D16MULE instructionstarget/mips/tcg/mxu_translate.c+90 -50 replies
11/33target/mips: Add emulation of MXU D16MACF D16MACE instructionstarget/mips/tcg/mxu_translate.c+68 -60 replies
12/33target/mips: Add emulation of MXU D16MADL instructiontarget/mips/tcg/mxu_translate.c+82 -00 replies
13/33target/mips: Add emulation of MXU S16MAD instructiontarget/mips/tcg/mxu_translate.c+65 -00 replies
14/33target/mips: Add emulation of MXU Q16ADD instructiontarget/mips/tcg/mxu_translate.c+89 -00 replies
15/33target/mips: Add emulation of MXU D32ADD instructiontarget/mips/tcg/mxu_translate.c+64 -00 replies
16/33target/mips: Add emulation of MXU D32ACC D32ACCM D32ASUM instructionstarget/mips/tcg/mxu_translate.c+160 -00 replies
17/33target/mips: Add emulation of MXU D32ADDC instructiontarget/mips/tcg/mxu_translate.c+32 -70 replies
18/33target/mips: Add emulation of MXU Q16ACC Q16ACCM D16ASUM instructionstarget/mips/tcg/mxu_translate.c+227 -10 replies
19/33target/mips: Add emulation of MXU Q8ADDE Q8ACCE D8SUM D8SUMC instructionstarget/mips/tcg/mxu_translate.c+200 -00 replies
20/33target/mips: Add emulation of MXU S8STD S8LDI S8SDI instructionstarget/mips/tcg/mxu_translate.c+72 -20 replies
21/33target/mips: Add emulation of MXU S16LDD S16STD S16LDI S16SDI instructionstarget/mips/tcg/mxu_translate.c+117 -00 replies
22/33target/mips: Add emulation of MXU S32MUL S32MULU S32EXTR S32EXTRV insnstarget/mips/tcg/mxu_translate.c+196 -40 replies
23/33target/mips: Add emulation of MXU S32ALN S32LUI insnstarget/mips/tcg/mxu_translate.c+121 -10 replies
24/33target/mips: Add emulation of MXU D32SARL D32SARW instructionstarget/mips/tcg/mxu_translate.c+59 -00 replies
25/33target/mips: Add emulation of MXU D32SLL D32SLR D32SAR instructionstarget/mips/tcg/mxu_translate.c+55 -00 replies
26/33target/mips: Add emulation of MXU Q16SLL Q16SLR Q16SAR instructionstarget/mips/tcg/mxu_translate.c+78 -00 replies
27/33target/mips: Add emulation of MXU D32/Q16- SLLV/SLRV/SARV instructionstarget/mips/tcg/mxu_translate.c+162 -40 replies
28/33target/mips: Add emulation of MXU S32/D16/Q8- MOVZ/MOVN instructionstarget/mips/tcg/mxu_translate.c+188 -00 replies
29/33target/mips: Add emulation of MXU Q8MAC Q8MACSU instructionstarget/mips/tcg/mxu_translate.c+86 -420 replies
30/33target/mips: Add emulation of MXU Q16SCOP instructiontarget/mips/tcg/mxu_translate.c+85 -00 replies
31/33target/mips: Add emulation of MXU Q8MADL instructiontarget/mips/tcg/mxu_translate.c+75 -00 replies
32/33target/mips: Add emulation of MXU S32SFL instructiontarget/mips/tcg/mxu_translate.c+81 -00 replies
33/33target/mips: Add emulation of MXU Q8SAD instructiontarget/mips/tcg/mxu_translate.c+45 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/33] target/mips: Finalise the Ingenic MXU ASE support

This patch series is aimed to add complete support of the Ingenic MXU extensions of version 1 revision 2.
The serie doesn't split revision 1 and revision 2 of the MXU ASE as it ought to be, because I have no hardware which supports revision 1 only. The MXU version 2 is not the subject of the patch series either.

All added/fixed instructions were tested on real hardware via set of fuzz tests written for that purpose, although the tests aren't subject of this patch series.

Siarhei Volkau (33):
target/mips: Add emulation of MXU instructions for 32-bit load/store Add support of two XBurst CPUs
target/mips: Add emulation of LXW LXB LXH LXBU LXHU instructions target/mips: Add emulation of S32MADD/MADDU/MSUB/MSUBU instructions target/mips: Add emulation of Q8SLT Q8SLTU instructions target/mips: fix MXU D16MAX D16MIN Q8MAX Q8MIN instructions target/mips: Add emulation of MXU S32SLT D16SLT D16AVG[R] Q8AVG[R]
insns
target/mips: Add emulation of Q8ADD instruction target/mips: Add emulation of MXU S32CPS D16CPS Q8ABD Q16SAT insns target/mips: Add emulation of MXU D16MULF D16MULE instructions target/mips: Add emulation of MXU D16MACF D16MACE instructions target/mips: Add emulation of MXU D16MADL instruction target/mips: Add emulation of MXU S16MAD instruction target/mips: Add emulation of MXU Q16ADD instruction target/mips: Add emulation of MXU D32ADD instruction target/mips: Add emulation of MXU D32ACC D32ACCM D32ASUM instructions target/mips: Add emulation of MXU D32ADDC instruction target/mips: Add emulation of MXU Q16ACC Q16ACCM D16ASUM instructions target/mips: Add emulation of MXU Q8ADDE Q8ACCE D8SUM D8SUMC
instructions
target/mips: Add emulation of MXU S8STD S8LDI S8SDI instructions target/mips: Add emulation of MXU S16LDD S16STD S16LDI S16SDI
instructions
target/mips: Add emulation of MXU S32MUL S32MULU S32EXTR S32EXTRV
insns
target/mips: Add emulation of MXU S32ALN S32LUI insns target/mips: Add emulation of MXU D32SARL D32SARW instructions target/mips: Add emulation of MXU D32SLL D32SLR D32SAR instructions target/mips: Add emulation of MXU Q16SLL Q16SLR Q16SAR instructions target/mips: Add emulation of MXU D32/Q16- SLLV/SLRV/SARV instructions target/mips: Add emulation of MXU S32/D16/Q8- MOVZ/MOVN instructions target/mips: Add emulation of MXU Q8MAC Q8MACSU instructions target/mips: Add emulation of MXU Q16SCOP instruction target/mips: Add emulation of MXU Q8MADL instruction target/mips: Add emulation of MXU S32SFL instruction target/mips: Add emulation of MXU Q8SAD instruction

 target/mips/cpu-defs.c.inc      |   46 +
 target/mips/tcg/mxu_translate.c | 3935 +++++++++++++++++++++++++++++--
 target/mips/tcg/translate.c     |    7 +-
 3 files changed, 3787 insertions(+), 201 deletions(-)
Signature · 1 line
2.40.0