Commit edf3aec
authored
Build and test riscv32 (#700)
This uses a pre-built RISC-V toolchain to build and test evmone.
This compiles evmone and dependencies to `rv32imafdc` with `ilp32d` ABI.
I.e. this target has hardware support for floating point.
Our preference would be to compile for `rv32imac` with `ilp32` ABI.
However, there are some obstacles to get there:
1. The pre-built toolchain is built for `ilp32d`. We would need to build
the toolchain ourselves.
2. We can hack it by setting `-march=rv32imac -mabi=ilp32d`. The
compiler is not very happy about using architecture with incompatible
ABI but it will proceed anyway. Unfortunately, the dependencies have
some floating-point code so we also need to provide soft-float library.
I was not able to make it build so far.3 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
659 | 667 | | |
660 | 668 | | |
661 | 669 | | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
662 | 680 | | |
663 | 681 | | |
664 | 682 | | |
| |||
705 | 723 | | |
706 | 724 | | |
707 | 725 | | |
| 726 | + | |
708 | 727 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments