diff options
author | Peter Maydell | 2019-06-11 17:39:50 +0200 |
---|---|---|
committer | Peter Maydell | 2019-06-13 16:14:05 +0200 |
commit | b8474540cbce4e2fa45010416375d1bcbe86dc15 (patch) | |
tree | 2a18f49e16e5f60fa9cb68c4f9d83ac199ec3a88 /target/arm/translate-vfp.inc.c | |
parent | target/arm: Convert VNEG to decodetree (diff) | |
download | qemu-b8474540cbce4e2fa45010416375d1bcbe86dc15.tar.gz qemu-b8474540cbce4e2fa45010416375d1bcbe86dc15.tar.xz qemu-b8474540cbce4e2fa45010416375d1bcbe86dc15.zip |
target/arm: Convert VSQRT to decodetree
Convert the VSQRT instruction to decodetree.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/arm/translate-vfp.inc.c')
-rw-r--r-- | target/arm/translate-vfp.inc.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/arm/translate-vfp.inc.c b/target/arm/translate-vfp.inc.c index 6e06b2a130..ae2f77a873 100644 --- a/target/arm/translate-vfp.inc.c +++ b/target/arm/translate-vfp.inc.c @@ -1908,3 +1908,23 @@ static bool trans_VNEG_dp(DisasContext *s, arg_VNEG_dp *a) { return do_vfp_2op_dp(s, gen_helper_vfp_negd, a->vd, a->vm); } + +static void gen_VSQRT_sp(TCGv_i32 vd, TCGv_i32 vm) +{ + gen_helper_vfp_sqrts(vd, vm, cpu_env); +} + +static bool trans_VSQRT_sp(DisasContext *s, arg_VSQRT_sp *a) +{ + return do_vfp_2op_sp(s, gen_VSQRT_sp, a->vd, a->vm); +} + +static void gen_VSQRT_dp(TCGv_i64 vd, TCGv_i64 vm) +{ + gen_helper_vfp_sqrtd(vd, vm, cpu_env); +} + +static bool trans_VSQRT_dp(DisasContext *s, arg_VSQRT_dp *a) +{ + return do_vfp_2op_dp(s, gen_VSQRT_dp, a->vd, a->vm); +} |