Skip to content

Commit 020e418

Browse files
authored
Add riscv64 arch and u74mc uarch (archspec#35)
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.
1 parent 1fa5336 commit 020e418

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

cpu/microarchitectures.json

+38
Original file line numberDiff line numberDiff line change
@@ -2017,6 +2017,44 @@
20172017
"features": [],
20182018
"compilers": {
20192019
}
2020+
},
2021+
"riscv64": {
2022+
"from": [],
2023+
"vendor": "generic",
2024+
"features": [],
2025+
"compilers": {
2026+
"gcc": [
2027+
{
2028+
"versions": "7.1:",
2029+
"flags" : "-march=rv64gc"
2030+
}
2031+
],
2032+
"clang": [
2033+
{
2034+
"versions": "9.0:",
2035+
"flags" : "-march=rv64gc"
2036+
}
2037+
]
2038+
}
2039+
},
2040+
"u74mc": {
2041+
"from": ["riscv64"],
2042+
"vendor": "SiFive",
2043+
"features": [],
2044+
"compilers": {
2045+
"gcc": [
2046+
{
2047+
"versions": "10.2:",
2048+
"flags" : "-march=rv64gc -mtune=sifive-7-series"
2049+
}
2050+
],
2051+
"clang" : [
2052+
{
2053+
"versions": "12.0:",
2054+
"flags" : "-march=rv64gc -mtune=sifive-7-series"
2055+
}
2056+
]
2057+
}
20202058
}
20212059
},
20222060
"feature_aliases": {

tests/targets/linux-sifive-u74mc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
processor : 0
2+
hart : 4
3+
isa : rv64imafdc
4+
mmu : sv39
5+
uarch : sifive,u74-mc

0 commit comments

Comments
 (0)