target/ppc: Refactor emulation of vmrgew and vmrgow instructions
commit897b63978946213005603ffafdcd1bcfb45cff27
authorStefan Brankovic <stefan.brankovic@rt-rk.com>
Tue, 27 Aug 2019 09:37:43 +0000 (27 11:37 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 28 Aug 2019 23:46:07 +0000 (29 09:46 +1000)
tree8861ac2e80cc382c85c8aeae2ba9eff67fca8a38
parent16ce2fffa660aa0593afaf8e38428c8e21df4080
target/ppc: Refactor emulation of vmrgew and vmrgow instructions

Since I found this two instructions implemented with tcg, I refactored
them so they are consistent with other similar implementations that
I introduced in this patch.

Also, a new dual macro GEN_VXFORM_TRANS_DUAL is added. This macro is
used if one instruction is realized with direct translation, and second
one with a helper.

Signed-off-by: Stefan Brankovic <stefan.brankovic@rt-rk.com>
Message-Id: <1566898663-25858-4-git-send-email-stefan.brankovic@rt-rk.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate/vmx-impl.inc.c