Skip to content

Commit

Permalink
Add riscv64 arch and u74mc uarch (#35)
Browse files Browse the repository at this point in the history
Add riscv64 arch and SiFive u74mc uarch.

First version of GCC with RISC-V support was 7.1.
First version of LLVM with RISC-V support was 9.0.
rv64gc is a commonly used shorthand alias for rv64imafdc.
  • Loading branch information
ktpedre authored and alalazo committed Oct 22, 2021
1 parent 34da94f commit 34b2caf
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
38 changes: 38 additions & 0 deletions cpu/microarchitectures.json
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,44 @@
"features": [],
"compilers": {
}
},
"riscv64": {
"from": [],
"vendor": "generic",
"features": [],
"compilers": {
"gcc": [
{
"versions": "7.1:",
"flags" : "-march=rv64gc"
}
],
"clang": [
{
"versions": "9.0:",
"flags" : "-march=rv64gc"
}
]
}
},
"u74mc": {
"from": ["riscv64"],
"vendor": "SiFive",
"features": [],
"compilers": {
"gcc": [
{
"versions": "10.2:",
"flags" : "-march=rv64gc -mtune=sifive-7-series"
}
],
"clang" : [
{
"versions": "12.0:",
"flags" : "-march=rv64gc -mtune=sifive-7-series"
}
]
}
}
},
"feature_aliases": {
Expand Down
5 changes: 5 additions & 0 deletions tests/targets/linux-sifive-u74mc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
processor : 0
hart : 4
isa : rv64imafdc
mmu : sv39
uarch : sifive,u74-mc

0 comments on commit 34b2caf

Please sign in to comment.