target/ppc: introduce GEN_VSX_HELPER_R2_AB macro to fpu_helper.c
commit6ae4a57ab037f921207d92568d18d1bd5f8b62de
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 16 Jun 2019 12:37:48 +0000 (16 13:37 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 1 Jul 2019 23:43:58 +0000 (2 09:43 +1000)
tree1407780206bb1dfe6b6863df7ee3c28c4b741156
parent99229620112a29b24f0ca5b7e16a2548d7318337
target/ppc: introduce GEN_VSX_HELPER_R2_AB macro to fpu_helper.c

Rather than perform the VSR register decoding within the helper itself,
introduce a new GEN_VSX_HELPER_R2_AB macro which performs the decode based
upon rA and rB at translation time.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20190616123751.781-13-mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/fpu_helper.c
target/ppc/helper.h
target/ppc/translate/vsx-impl.inc.c