qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Will Newton <will.newton@linaro.org>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: [Qemu-devel] [PATCH 5/9] target-arm: Add support for AArch32 FP VRINTX
Date: Tue, 14 Jan 2014 16:43:06 +0000	[thread overview]
Message-ID: <1389717790-30860-6-git-send-email-will.newton@linaro.org> (raw)
In-Reply-To: <1389717790-30860-1-git-send-email-will.newton@linaro.org>

Add support for the AArch32 floating-point VRINTX instruction.

Signed-off-by: Will Newton <will.newton@linaro.org>
---
 target-arm/translate.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/target-arm/translate.c b/target-arm/translate.c
index 153d0e6..5108f6b 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -3406,6 +3406,17 @@ static int disas_vfp_insn(CPUARMState * env, DisasContext *s, uint32_t insn)
                             tcg_temp_free_ptr(fpst);
                         }
                         break;
+                    case 14: /* vrintx */
+                        if (dp) {
+                            TCGv_ptr fpst = get_fpstatus_ptr(0);
+                            gen_helper_rintd_exact(cpu_F0d, cpu_F0d, fpst);
+                            tcg_temp_free_ptr(fpst);
+                        } else {
+                            TCGv_ptr fpst = get_fpstatus_ptr(0);
+                            gen_helper_rints_exact(cpu_F0s, cpu_F0s, fpst);
+                            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

  parent reply	other threads:[~2014-01-14 16:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14 16:43 [Qemu-devel] [PATCH 0/9] target-arm: Add AArch32 ARMv8 VRINT instructions Will Newton
2014-01-14 16:43 ` [Qemu-devel] [PATCH 1/9] target-arm: Move arm_rmode_to_sf to a shared location Will Newton
2014-01-27 16:43   ` Peter Maydell
2014-01-14 16:43 ` [Qemu-devel] [PATCH 2/9] target-arm: Add AArch32 FP VRINTA, VRINTN, VRINTP and VRINTM Will Newton
2014-01-27 16:33   ` Peter Maydell
2014-01-14 16:43 ` [Qemu-devel] [PATCH 3/9] target-arm: Add support for AArch32 FP VRINTR Will Newton
2014-01-27 16:35   ` Peter Maydell
2014-01-14 16:43 ` [Qemu-devel] [PATCH 4/9] target-arm: Add support for AArch32 FP VRINTZ Will Newton
2014-01-14 16:43 ` Will Newton [this message]
2014-01-14 16:43 ` [Qemu-devel] [PATCH 6/9] target-arm: Add support for AArch32 SIMD VRINTX Will Newton
2014-01-27 16:49   ` Peter Maydell
2014-01-14 16:43 ` [Qemu-devel] [PATCH 7/9] target-arm: Add set_neon_rmode helper Will Newton
2014-01-27 16:49   ` Peter Maydell
2014-01-14 16:43 ` [Qemu-devel] [PATCH 8/9] target-arm: Add support for AArch32 SIMD VRINTZ Will Newton
2014-01-27 16:50   ` Peter Maydell
2014-01-14 16:43 ` [Qemu-devel] [PATCH 9/9] target-arm: Add AArch32 SIMD VRINTA, VRINTN, VRINTP and VRINTM Will Newton
2014-01-27 16:52   ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1389717790-30860-6-git-send-email-will.newton@linaro.org \
    --to=will.newton@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).