From b7c6e7f78e590c2d742320d55bff022d2cee7344 Mon Sep 17 00:00:00 2001 From: Paul Boddie Date: Fri, 20 Sep 2019 01:05:24 +0200 Subject: Added missing floating-point register routines for little-endian MIPS --- lib9/setfcr-Linux-spim.S | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib9/setfcr-Linux-spim.S (limited to 'lib9/setfcr-Linux-spim.S') diff --git a/lib9/setfcr-Linux-spim.S b/lib9/setfcr-Linux-spim.S new file mode 100644 index 00000000..9031f628 --- /dev/null +++ b/lib9/setfcr-Linux-spim.S @@ -0,0 +1,27 @@ +#include +#include + +#define FN(x) .type x,%function; .global x; x +#define ENT +#define RET jr ra + + .file "setfcr-Linux-spim.S" +FN(setfcr): + ENT + mtc1 a0, $31 + RET + +FN(getfcr): + ENT + mfc1 v0, $31 + RET + +FN(getfsr): + ENT + mfc1 v0, $31 + RET + +FN(setfsr): + ENT + mtc1 a0, $31 + RET -- cgit v1.2.3