target/ppc: Implement xxm[tf]acc and xxsetaccz
commita702c5339eda791b969ed531ce99456df7ca8451
authorLucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br>
Tue, 24 May 2022 14:05:30 +0000 (24 11:05 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 26 May 2022 20:11:33 +0000 (26 17:11 -0300)
tree4bbff29dd291a3a3518204e4af0ddf4fc04116f1
parent03abfd90cfb02aa08f44bbb7141b0aaaf69042ef
target/ppc: Implement xxm[tf]acc and xxsetaccz

Implement the following PowerISA v3.1 instructions:
xxmfacc: VSX Move From Accumulator
xxmtacc: VSX Move To Accumulator
xxsetaccz: VSX Set Accumulator to Zero

The PowerISA 3.1 mentions that for the current version of the
architecture, "the hardware implementation provides the effect of ACC[i]
and VSRs 4*i to 4*i + 3 logically containing the same data" and "The
Accumulators introduce no new logical state at this time" (page 501).
For now it seems unnecessary to create new structures, so this patch
just uses ACC[i] as VSRs 4*i to 4*i+3 and therefore move to and from
accumulators are no-ops.

Signed-off-by: Lucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220524140537.27451-2-lucas.araujo@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu.h
target/ppc/insn32.decode
target/ppc/translate/vsx-impl.c.inc