diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-06-26 23:14:38 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-06-26 23:15:35 +0200 |
commit | 0be990bd04326b114f710fafdee2465480613825 (patch) | |
tree | d508b0cf30d60da84230324866cc90204f64279e /firmware/start.S | |
parent | d4331491a87aa27fb77e5971c887e345886de2be (diff) | |
download | picorv32-0be990bd04326b114f710fafdee2465480613825.tar.gz picorv32-0be990bd04326b114f710fafdee2465480613825.zip |
Added Pico Co-Processor Interface (PCPI)
Diffstat (limited to 'firmware/start.S')
-rw-r--r-- | firmware/start.S | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/firmware/start.S b/firmware/start.S index 990cf06..bf2a55e 100644 --- a/firmware/start.S +++ b/firmware/start.S @@ -1,6 +1,11 @@ .section .text .global irq .global sieve + .global multest + .global hard_mul + .global hard_mulh + .global hard_mulhsu + .global hard_mulhu .global stats #define TEST(n) \ @@ -220,6 +225,9 @@ start: /* jump to sieve C code */ jal ra,sieve + /* jump to sieve C code */ + jal ra,multest + /* jump to stats C code */ jal ra,stats @@ -239,3 +247,19 @@ start: /* break */ sbreak +hard_mul: + mul a0, a0, a1 + ret + +hard_mulh: + mulh a0, a0, a1 + ret + +hard_mulhsu: + mulhsu a0, a0, a1 + ret + +hard_mulhu: + mulhu a0, a0, a1 + ret + |