]> git.proxmox.com Git - mirror_qemu.git/commit - target-ppc/translate.c
target-ppc: Add ISA2.06 Float to Integer Instructions
authorTom Musta <tommusta@gmail.com>
Tue, 7 Jan 2014 16:05:59 +0000 (10:05 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:41 +0000 (03:06 +0100)
commitfab7fe426fa5325f93c931ffbe25f4e024b1ced4
tree821ece26f95ded45065281ef5785538ee90bdf33
parent1b0bd0029f16649a7f3d8ba021191bc6ca3a471f
target-ppc: Add ISA2.06 Float to Integer Instructions

This patch adds the four floating point to integer conversion instructions
introduced by Power ISA V2.06:

  - Floating Convert to Integer Word Unsigned (fctiwu)
  - Floating Convert to Integer Word Unsigned with Round Toward
    Zero (fctiwuz)
  - Floating Convert to Integer Doubleword Unsigned (fctidu)
  - Floating Convert to Integer Doubleword Unsigned with Round
    Toward Zero (fctiduz)

A common macro is developed to eliminate repetitious code.  Existing instructions
are also refactoried to use this macro (fctiw, fctiwz, fctid, fctidz).

Signed-off-by: Tom Musta <tommusta@gmail.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/fpu_helper.c
target-ppc/helper.h
target-ppc/translate.c