aboutsummaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-01-15 14:38:27 +0100
committerClifford Wolf <clifford@clifford.at>2017-01-15 14:38:27 +0100
commit70f3c33ac8348a46eeca92796721dcf8cbcc326c (patch)
tree45eccbaba7f14ace1b7c3fb15f4d4dc769a1a495 /firmware
parent4e6cad88bc8636858f6a361b8f94adf773c47d81 (diff)
downloadpicorv32-70f3c33ac8348a46eeca92796721dcf8cbcc326c.tar.gz
picorv32-70f3c33ac8348a46eeca92796721dcf8cbcc326c.zip
Add newlib linker info to README file
Diffstat (limited to 'firmware')
-rw-r--r--firmware/custom_ops.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/custom_ops.S b/firmware/custom_ops.S
index 28bb601..71889b9 100644
--- a/firmware/custom_ops.S
+++ b/firmware/custom_ops.S
@@ -51,7 +51,6 @@
#define regnum_t0 5
#define regnum_t1 6
#define regnum_t2 7
-#define regnum_fp 8 // x8 is s0 and also fp
#define regnum_s0 8
#define regnum_s1 9
#define regnum_a0 10
@@ -77,6 +76,9 @@
#define regnum_t5 30
#define regnum_t6 31
+// x8 is s0 and also fp
+#define regnum_fp 8
+
#define r_type_insn(_f7, _rs2, _rs1, _f3, _rd, _opc) \
.word (((_f7) << 25) | ((_rs2) << 20) | ((_rs1) << 15) | ((_f3) << 12) | ((_rd) << 7) | ((_opc) << 0))