summaryrefslogtreecommitdiff
path: root/arch/powerpc/math-emu/frsqrtes.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-09 11:00:42 +0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-20 11:05:05 +0400
commit04ae9001719c3f0012d239a7c5aa4136f6b6541d (patch)
tree7fb5adf84fa359034100e672f92a21e42789313a /arch/powerpc/math-emu/frsqrtes.c
parenta5e4797b0f46819a74a7233825137ed5d2f51b51 (diff)
downloadlinux-04ae9001719c3f0012d239a7c5aa4136f6b6541d.tar.xz
powerpc/math-emu: Fix decoding of some instructions
The decoding of some instructions such as fsqrt{s} was incorrect, using the wrong registers, and thus could not work. This fixes it and also adds a couple of place holders for missing instructions. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/math-emu/frsqrtes.c')
-rw-r--r--arch/powerpc/math-emu/frsqrtes.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/math-emu/frsqrtes.c b/arch/powerpc/math-emu/frsqrtes.c
new file mode 100644
index 000000000000..7e838e380314
--- /dev/null
+++ b/arch/powerpc/math-emu/frsqrtes.c
@@ -0,0 +1,11 @@
+#include <linux/types.h>
+#include <linux/errno.h>
+#include <asm/uaccess.h>
+
+int frsqrtes(void *frD, void *frB)
+{
+#ifdef DEBUG
+ printk("%s: %p %p\n", __func__, frD, frB);
+#endif
+ return 0;
+}