summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/math-emu/fre.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-09 17:00:42 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-20 17:05:05 +1000
commit04ae9001719c3f0012d239a7c5aa4136f6b6541d (patch)
tree7fb5adf84fa359034100e672f92a21e42789313a /arch/powerpc/math-emu/fre.c
parenta5e4797b0f46819a74a7233825137ed5d2f51b51 (diff)
downloadlinux-04ae9001719c3f0012d239a7c5aa4136f6b6541d.tar.bz2
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/fre.c')
-rw-r--r--arch/powerpc/math-emu/fre.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/math-emu/fre.c b/arch/powerpc/math-emu/fre.c
new file mode 100644
index 000000000000..49ccf2cc6a5a
--- /dev/null
+++ b/arch/powerpc/math-emu/fre.c
@@ -0,0 +1,11 @@
+#include <linux/types.h>
+#include <linux/errno.h>
+#include <asm/uaccess.h>
+
+int fre(void *frD, void *frB)
+{
+#ifdef DEBUG
+ printk("%s: %p %p\n", __func__, frD, frB);
+#endif
+ return -ENOSYS;
+}