diff --git a/cpu/microarchitectures.json b/cpu/microarchitectures.json index 40f59bf..0be30c2 100644 --- a/cpu/microarchitectures.json +++ b/cpu/microarchitectures.json @@ -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": { diff --git a/tests/targets/linux-sifive-u74mc b/tests/targets/linux-sifive-u74mc new file mode 100644 index 0000000..8c1d290 --- /dev/null +++ b/tests/targets/linux-sifive-u74mc @@ -0,0 +1,5 @@ +processor : 0 +hart : 4 +isa : rv64imafdc +mmu : sv39 +uarch : sifive,u74-mc