aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/op.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-30 01:11:48 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-30 01:11:48 +0000
commitd7e4b87e53923542c1a7220e08bcae2252f5a22e (patch)
tree0d29076ef6fd68674772fcefa0382a6921f0889c /target-ppc/op.c
parent477023a6038e8f457c604b138198f76d093b9a87 (diff)
Implement new floating-point instructions (fre, frin, friz, frip, frim)
as defined in the PowerPC 2.04 specification. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3281 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op.c')
-rw-r--r--target-ppc/op.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/target-ppc/op.c b/target-ppc/op.c
index 4622534c27..46843d790f 100644
--- a/target-ppc/op.c
+++ b/target-ppc/op.c
@@ -1701,6 +1701,13 @@ void OPPROTO op_fsqrt (void)
RETURN();
}
+/* fre - fre. */
+void OPPROTO op_fre (void)
+{
+ do_fre();
+ RETURN();
+}
+
/* fres - fres. */
void OPPROTO op_fres (void)
{
@@ -1806,6 +1813,30 @@ void OPPROTO op_fctidz (void)
}
#endif
+void OPPROTO op_frin (void)
+{
+ do_frin();
+ RETURN();
+}
+
+void OPPROTO op_friz (void)
+{
+ do_friz();
+ RETURN();
+}
+
+void OPPROTO op_frip (void)
+{
+ do_frip();
+ RETURN();
+}
+
+void OPPROTO op_frim (void)
+{
+ do_frim();
+ RETURN();
+}
+
/*** Floating-Point compare ***/
/* fcmpu */
void OPPROTO op_fcmpu (void)