target/ppc: Move REQUIRE_ALTIVEC/VECTOR to translate.c
Move REQUIRE_ALTIVEC to translate.c and rename it to REQUIRE_VECTOR. Signed-off-by: Bruno Larsen <bruno.larsen@eldorado.org.br> Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br> Signed-off-by: Fernando Valle <fernando.valle@eldorado.org.br> Signed-off-by: Luis Pires <luis.pires@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <20211029192417.400707-3-luis.pires@eldorado.org.br> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
727385c4e1
commit
e2205a4609
@ -7341,6 +7341,14 @@ static int times_16(DisasContext *ctx, int x)
|
||||
# define REQUIRE_64BIT(CTX) REQUIRE_INSNS_FLAGS(CTX, 64B)
|
||||
#endif
|
||||
|
||||
#define REQUIRE_VECTOR(CTX) \
|
||||
do { \
|
||||
if (unlikely(!(CTX)->altivec_enabled)) { \
|
||||
gen_exception((CTX), POWERPC_EXCP_VPU); \
|
||||
return true; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
* Helpers for implementing sets of trans_* functions.
|
||||
* Defer the implementation of NAME to FUNC, with optional extra arguments.
|
||||
|
@ -17,20 +17,12 @@
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define REQUIRE_ALTIVEC(CTX) \
|
||||
do { \
|
||||
if (unlikely(!(CTX)->altivec_enabled)) { \
|
||||
gen_exception((CTX), POWERPC_EXCP_VPU); \
|
||||
return true; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
static bool trans_VCFUGED(DisasContext *ctx, arg_VX *a)
|
||||
{
|
||||
TCGv_i64 tgt, src, mask;
|
||||
|
||||
REQUIRE_INSNS_FLAGS2(ctx, ISA310);
|
||||
REQUIRE_ALTIVEC(ctx);
|
||||
REQUIRE_VECTOR(ctx);
|
||||
|
||||
tgt = tcg_temp_new_i64();
|
||||
src = tcg_temp_new_i64();
|
||||
|
Loading…
Reference in New Issue
Block a user