sifive / freedom-metal

Bare Metal Compatibility Library for the Freedom Platform
Other
152 stars 47 forks source link

Metal requires a SiFive Toolchain #78

Open palmer-dabbelt opened 5 years ago

palmer-dabbelt commented 5 years ago

Building metal does mtvt CSR operations, and since that's a CLIC thing it's not part of the upstream GCC port. We should just fall back to a register number if possible, but if we're using all the compiler support it might be better to just fall back to CLINT mode.

See https://github.com/riscv/riscv-gnu-toolchain/issues/423 for more details.

palmer-dabbelt commented 5 years ago

and also https://github.com/sifive/freedom-e-sdk/issues/230