WIP FPC-III support
[linux/fpc-iii.git] / arch / powerpc / math-emu / mtfsb1.c
blob8162c3bfd149a526f475d793616b63cf960ad1db
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/types.h>
3 #include <linux/errno.h>
4 #include <linux/uaccess.h>
6 #include <asm/sfp-machine.h>
7 #include <math-emu/soft-fp.h>
9 int
10 mtfsb1(int crbD)
12 if ((crbD != 1) && (crbD != 2))
13 __FPU_FPSCR |= (1 << (31 - crbD));
15 #ifdef DEBUG
16 printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR);
17 #endif
19 return 0;