target/ppc: Move VSX vector with length storage access insns to decodetree.
authorChinmay Rath <rathc@linux.ibm.com>
Tue, 18 Jun 2024 08:58:29 +0000 (14:28 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:51:33 +0000 (09:51 +1000)
commit29df8d950e20f5caeec137fa20bc1245fb9f702e
tree98fa5ad46c8d1384fef80227332ce92ef23b26a0
parentcff278c9fa4ed6a8c2e5d2aba6c490e6252a6825
target/ppc: Move VSX vector with length storage access insns to decodetree.

Moving the following instructions to decodetree specification :

        {l, st}xvl(l)           : X-form

The changes were verified by validating that the tcg-ops generated by those
instructions remain the same, which were captured using the '-d in_asm,op' flag.

Also added a new function do_ea_calc_ra to calculate the effective address :
EA <- (RA == 0) ? 0 : GPR[RA], which is now used by the above-said insns,
and shall be used later by (p){lx, stx}vp insns.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Chinmay Rath <rathc@linux.ibm.com>
[np: Fix 32-bit build]
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/helper.h
target/ppc/insn32.decode
target/ppc/mem_helper.c
target/ppc/translate.c
target/ppc/translate/vsx-impl.c.inc
target/ppc/translate/vsx-ops.c.inc