Received: from eggs.gnu.org ([2001:4830:134:3::10]:41112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W375S-00027M-0S for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W375K-0001IY-6Z for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:33 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:49793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W375K-0001IP-0E for qemu-devel@nongnu.org; Tue, 14 Jan 2014 11:43:26 -0500 Received: by mail-wg0-f48.google.com with SMTP id x13so639513wgg.27 for ; Tue, 14 Jan 2014 08:43:25 -0800 (PST) From: Will Newton Date: Tue, 14 Jan 2014 16:43:05 +0000 Message-Id: <1389717790-30860-5-git-send-email-will.newton@linaro.org> In-Reply-To: <1389717790-30860-1-git-send-email-will.newton@linaro.org> References: <1389717790-30860-1-git-send-email-will.newton@linaro.org> Subject: [Qemu-devel] [PATCH 4/9] target-arm: Add support for AArch32 FP VRINTZ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell Add support for the AArch32 floating-point VRINTZ instruction. Signed-off-by: Will Newton --- target-arm/translate.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/target-arm/translate.c b/target-arm/translate.c index 73e0e8d..153d0e6 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -3385,6 +3385,27 @@ static int disas_vfp_insn(CPUARMState * env, DisasContext *s, uint32_t insn) tcg_temp_free_ptr(fpst); } break; + case 13: /* vrintz */ + if (dp) { + TCGv_ptr fpst = get_fpstatus_ptr(0); + TCGv_i32 tcg_rmode; + tcg_rmode = tcg_const_i32(float_round_to_zero); + gen_helper_set_rmode(tcg_rmode, tcg_rmode, cpu_env); + gen_helper_rintd(cpu_F0d, cpu_F0d, fpst); + gen_helper_set_rmode(tcg_rmode, tcg_rmode, cpu_env); + tcg_temp_free_i32(tcg_rmode); + tcg_temp_free_ptr(fpst); + } else { + TCGv_ptr fpst = get_fpstatus_ptr(0); + TCGv_i32 tcg_rmode; + tcg_rmode = tcg_const_i32(float_round_to_zero); + gen_helper_set_rmode(tcg_rmode, tcg_rmode, cpu_env); + gen_helper_rints(cpu_F0s, cpu_F0s, fpst); + gen_helper_set_rmode(tcg_rmode, tcg_rmode, cpu_env); + tcg_temp_free_i32(tcg_rmode); + tcg_temp_free_ptr(fpst); + } + break; case 15: /* single<->double conversion */ if (dp) gen_helper_vfp_fcvtsd(cpu_F0s, cpu_F0d, cpu_env); -- 1.8.1.4