diff options
author | Paul Boddie <paul@boddie.org.uk> | 2019-09-20 01:05:24 +0200 |
---|---|---|
committer | David Boddie <david@boddie.org.uk> | 2021-01-01 17:59:59 +0100 |
commit | b7c6e7f78e590c2d742320d55bff022d2cee7344 (patch) | |
tree | 37b9296bb287083d371b7122d4127b3c204c71fe | |
parent | 012b00b7e47ed291b1f2ab07745f5a53db357c91 (diff) |
Added missing floating-point register routines for little-endian MIPS
-rw-r--r-- | lib9/setfcr-Linux-spim.S | 27 |
1 files changed, 27 insertions, 0 deletions
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 <sys/regdef.h> +#include <sys/asm.h> + +#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 |